瀏覽代碼

Disallow minus symbol for unsignedInteger method

Serj Kalichev 11 年之前
父節點
當前提交
36e963f3fc
共有 1 個文件被更改,包括 0 次插入2 次删除
  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;