Reformat assert.
authorayin <ayin>
Thu, 10 Jan 2008 11:30:45 +0000 (11:30 +0000)
committerayin <ayin>
Thu, 10 Jan 2008 11:30:45 +0000 (11:30 +0000)
src/keyboard.C

index 15a5fc863e1e1cd3fb82d20e6d98225fa99acca6..0008e58ce1b4b518f1e5d398b7c027d8902cfb75 100644 (file)
@@ -454,8 +454,9 @@ keyboard_manager::setup_hash ()
 
           assert (index >= 0);
           keysym_t *b = keymap [index];
-          assert (i == (signed) index ||       // the normally expected result
-            (a->keysym + j) >= b->keysym && (a->keysym + j) <= (b->keysym + b->range) && compare_priority (a, b) <= 0);        // is effectively the same or a closer match
+          assert (i == index   // the normally expected result
+                  || IN_RANGE_INC (a->keysym + j, b->keysym, b->keysym + b->range)
+                  && compare_priority (a, b) <= 0);    // is effectively the same or a closer match
         }
     }
 #endif