Miscellaneous: Unsigned expressions cant be negative
This commit is contained in:
@@ -80,7 +80,7 @@ public:
|
|||||||
char* countStr = strtok(NULL, " ");
|
char* countStr = strtok(NULL, " ");
|
||||||
uint32 count = countStr ? atol(countStr) : 10;
|
uint32 count = countStr ? atol(countStr) : 10;
|
||||||
|
|
||||||
if (count < 0)
|
if (count == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QueryResult result;
|
QueryResult result;
|
||||||
@@ -152,7 +152,7 @@ public:
|
|||||||
char* countStr = strtok(NULL, " ");
|
char* countStr = strtok(NULL, " ");
|
||||||
uint32 count = countStr ? atol(countStr) : 10;
|
uint32 count = countStr ? atol(countStr) : 10;
|
||||||
|
|
||||||
if (count < 0)
|
if (count == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
PreparedQueryResult result;
|
PreparedQueryResult result;
|
||||||
@@ -369,7 +369,7 @@ public:
|
|||||||
char* countStr = strtok(NULL, " ");
|
char* countStr = strtok(NULL, " ");
|
||||||
uint32 count = countStr ? atol(countStr) : 10;
|
uint32 count = countStr ? atol(countStr) : 10;
|
||||||
|
|
||||||
if (count < 0)
|
if (count == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QueryResult result;
|
QueryResult result;
|
||||||
|
|||||||
Reference in New Issue
Block a user