*: optimize code size in strtoul calls
[oweals/busybox.git] / libbb / parse_mode.c
index 40105dd3a27d464a01598db88c3b95d50cea0571..6eca00ab11e4eb9df3483984e754d929491191c5 100644 (file)
@@ -40,7 +40,7 @@ int FAST_FUNC bb_parse_mode(const char *s, mode_t *current_mode)
        mode_t new_mode;
        char op;
 
-       if (((unsigned int)(*s - '0')) < 8) {
+       if ((unsigned char)(*s - '0') < 8) {
                unsigned long tmp;
                char *e;