Fixed ~20 potential errors identified by the MS complier.

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

No files matched your search

+1 -1
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);