silence (un)signed int compare warning

Help older compilers to see the light. There's really no reason to warn
for this (with a literal 0 or 1)... but I give in.

Signed-off-by: Matthias Kretz <kretz@kde.org>