Fixed ~20 potential errors identified by the MS complier.

This commit is contained in:
Andrey Kamaev
2012-03-31 11:09:16 +00:00
parent 1e5a600d13
commit 72f2523d0f
15 changed files with 150 additions and 133 deletions

View File

@@ -1031,7 +1031,7 @@ static PyObject *cvquadedge_repr(PyObject *self)
char str[1000];
sprintf(str, "<cvsubdiv2dedge(");
char *d = str + strlen(str);
sprintf(d, "%zx.%d", m & ~3, (int)(m & 3));
sprintf(d, "%lux.%d", (unsigned long)(m & ~3), (int)(m & 3));
d += strlen(d);
sprintf(d, ")>");
return PyString_FromString(str);