Precedence fix
authorhpa <hpa>
Wed, 6 Apr 2005 09:53:28 +0000 (09:53 +0000)
committerhpa <hpa>
Wed, 6 Apr 2005 09:53:28 +0000 (09:53 +0000)
com32/modules/menu.c

index 92872e3..19d17b5 100644 (file)
@@ -119,7 +119,7 @@ display_entry(const struct menu_entry *entry, const char *attrib,
     if ( *p ) {
       if ( *p == '^' ) {
        p++;
-       if ( *p && (unsigned char)*p & ~0x20 == entry->hotkey ) {
+       if ( *p && ((unsigned char)*p & ~0x20) == entry->hotkey ) {
          fputs(hotattrib, stdout);
          putchar(*p++);
          fputs(attrib, stdout);