Fix signedness mismatch error with Xcode

This commit is contained in:
Iris Morelle 2022-03-24 14:35:24 -03:00
parent 45948827df
commit 27b1776840
No known key found for this signature in database
GPG key ID: BB9666228F278524

View file

@ -180,7 +180,7 @@ void mouse_handler_base::mouse_press(const SDL_MouseButtonEvent& event, const bo
if (!dragging_started_ && touch_timestamp > 0) {
time_t dt = clock() - touch_timestamp;
if (dt > CLOCKS_PER_SEC * 3 / 10) {
if (dt >= 0 && clock_t(dt) > CLOCKS_PER_SEC * 3 / 10) {
right_click(event.x, event.y, browse); // show_menu_ = true;
}
} else {