Get rid of warnings on some platforms by using %u for a size_t.

This commit is contained in:
Neal Norwitz 2006-03-25 23:55:39 +00:00
parent 4d65af0807
commit 7fbd6916b6
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ PyString_FromFormatV(const char *format, va_list vargs)
if (longflag)
sprintf(s, "%ld", va_arg(vargs, long));
else if (size_tflag)
sprintf(s, "%" PY_FORMAT_SIZE_T "d",
sprintf(s, "%" PY_FORMAT_SIZE_T "u",
va_arg(vargs, size_t));
else
sprintf(s, "%d", va_arg(vargs, int));