##// END OF EJS Templates
parsers: fix an integer size warning issued by clang
Bryan O'Sullivan -
r17356:511dfb34 default
parent child Browse files
Show More
@@ -9,6 +9,7 b''
9 9
10 10 #include <Python.h>
11 11 #include <ctype.h>
12 #include <stddef.h>
12 13 #include <string.h>
13 14
14 15 #include "util.h"
@@ -72,7 +73,7 b' static PyObject *parse_manifest(PyObject'
72 73 for (start = cur = str, zero = NULL; cur < str + len; cur++) {
73 74 PyObject *file = NULL, *node = NULL;
74 75 PyObject *flags = NULL;
75 int nlen;
76 ptrdiff_t nlen;
76 77
77 78 if (!*cur) {
78 79 zero = cur;
@@ -94,7 +95,7 b' static PyObject *parse_manifest(PyObject'
94 95
95 96 nlen = cur - zero - 1;
96 97
97 node = unhexlify(zero + 1, nlen > 40 ? 40 : nlen);
98 node = unhexlify(zero + 1, nlen > 40 ? 40 : (int)nlen);
98 99 if (!node)
99 100 goto bail;
100 101
General Comments 0
You need to be logged in to leave comments. Login now