gdate: Fix tautological comparison warnings on Android

Android is emitting `-Wtautological-constant-out-of-range-compare`
warnings when compiling the validation functions for the enum types for
`GDate`. Fix that by comparing as integers.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
11 jobs for android-warning-fix in 37 minutes and 51 seconds (queued for 2 seconds)