##// END OF EJS Templates
parsers: fix 'unsigned expression is always true' warning (issue4142)...
David Soria Parra -
r20316:40f08c31 stable
parent child Browse files
Show More
@@ -185,7 +185,7 b' static PyObject *parse_dirstate(PyObject'
185 185 flen = getbe32(cur + 13);
186 186 pos += 17;
187 187 cur += 17;
188 if (flen > len - pos || flen < 0) {
188 if (flen > len - pos) {
189 189 PyErr_SetString(PyExc_ValueError, "overflow in dirstate");
190 190 goto quit;
191 191 }
General Comments 0
You need to be logged in to leave comments. Login now