diff options
author | Subv <s.v.h21@hotmail.com> | 2012-07-06 20:52:54 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-07-06 20:52:54 -0500 |
commit | 26c36ba8543cae77af789276a25d4a3c3d06983d (patch) | |
tree | 3387bc112369232bba9bb3583397b16226bd636e /src | |
parent | d4390c171ae3e6addfdbc205cbe426df34c08cc5 (diff) |
Miscellaneous: Unsigned expressions cant be negative
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Commands/cs_list.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Commands/cs_list.cpp b/src/server/scripts/Commands/cs_list.cpp index 746956581a6..5c16a0963d3 100644 --- a/src/server/scripts/Commands/cs_list.cpp +++ b/src/server/scripts/Commands/cs_list.cpp @@ -80,7 +80,7 @@ public: char* countStr = strtok(NULL, " "); uint32 count = countStr ? atol(countStr) : 10; - if (count < 0) + if (count == 0) return false; QueryResult result; @@ -152,7 +152,7 @@ public: char* countStr = strtok(NULL, " "); uint32 count = countStr ? atol(countStr) : 10; - if (count < 0) + if (count == 0) return false; PreparedQueryResult result; @@ -369,7 +369,7 @@ public: char* countStr = strtok(NULL, " "); uint32 count = countStr ? atol(countStr) : 10; - if (count < 0) + if (count == 0) return false; QueryResult result; |