Procházet zdrojové kódy

Disallow minus symbol for unsignedInteger method

Serj Kalichev před 11 roky
rodič
revize
36e963f3fc
1 změnil soubory, kde provedl 0 přidání a 2 odebrání
  1. 0 2
      clish/ptype/ptype.c

+ 0 - 2
clish/ptype/ptype.c

@@ -326,8 +326,6 @@ static char *clish_ptype_validate_or_translate(const clish_ptype_t * this,
 		/* first of all check that this is a number */
 		bool_t ok = BOOL_TRUE;
 		const char *p = result;
-		if (*p == '-')
-			p++;
 		while (*p) {
 			if (!lub_ctype_isdigit(*p++)) {
 				ok = BOOL_FALSE;