Explorar o código

Disallow minus symbol for unsignedInteger method

Serj Kalichev %!s(int64=11) %!d(string=hai) anos
pai
achega
36e963f3fc
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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;