From b02a3bf95504d97c68ca253481e1c39a5c02b465 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 23 Jun 2015 10:08:46 -0300 Subject: [PATCH] Fix compilation warning about implicit int -> bool conversion --- src/she/alleg4/mouse_poller.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/she/alleg4/mouse_poller.cpp b/src/she/alleg4/mouse_poller.cpp index 85fb774ff..8dcbfc454 100644 --- a/src/she/alleg4/mouse_poller.cpp +++ b/src/she/alleg4/mouse_poller.cpp @@ -221,10 +221,9 @@ void mouse_poller_init() #endif // optional mouse callback for supported platforms - she_mouse_polling_required = mouse_needs_poll(); - if (!she_mouse_polling_required) { + she_mouse_polling_required = (mouse_needs_poll() != 0); + if (!she_mouse_polling_required) mouse_callback = she_mouse_callback; - } } void mouse_poller_generate_events()