Edje: Silence more clang stuff
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Apr 2015 11:44:38 +0000 (20:44 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Apr 2015 11:46:04 +0000 (20:46 +0900)
And make it explicit that the enum is unsigned

src/lib/edje/edje_multisense.c

index 0efb1e7ee6bc9af6a59301e070f2c8e2aaa7cfa6..da24e0cf4adc04051aee56d5ec5a84976f1dd990 100644 (file)
@@ -110,7 +110,7 @@ EAPI void
 edje_audio_channel_mute_set(Edje_Channel channel, Eina_Bool mute)
 {
 #ifdef ENABLE_MULTISENSE
-   if ((channel < 0) || (channel > 7)) return;
+   if ((unsigned) channel > 7) return;
    _channel_mute_states[channel] = mute;
 #else
    (void) channel;
@@ -122,7 +122,7 @@ EAPI Eina_Bool
 edje_audio_channel_mute_get(Edje_Channel channel)
 {
 #ifdef ENABLE_MULTISENSE
-   if ((channel < 0) || (channel > 7)) return EINA_FALSE;
+   if ((unsigned) channel > 7) return EINA_FALSE;
    return _channel_mute_states[channel];
 #else
    (void) channel;