[Python-checkins] r77689 - python/branches/py3k-cdecimal/Modules/cdecimal/io.c
stefan.krah
python-checkins at python.org
Fri Jan 22 17:12:40 CET 2010
Author: stefan.krah
Date: Fri Jan 22 17:12:40 2010
New Revision: 77689
Log:
Fix Visual Studio warnings.
Modified:
python/branches/py3k-cdecimal/Modules/cdecimal/io.c
Modified: python/branches/py3k-cdecimal/Modules/cdecimal/io.c
==============================================================================
--- python/branches/py3k-cdecimal/Modules/cdecimal/io.c (original)
+++ python/branches/py3k-cdecimal/Modules/cdecimal/io.c Fri Jan 22 17:12:40 2010
@@ -296,9 +296,9 @@
d = mpd_pow10[j];
q = x / d;
x -= d * q;
- *s++ = '0' + q;
+ *s++ = '0' + (char)q;
}
- *s++ = '0' + x;
+ *s++ = '0' + (char)x;
return s;
}
@@ -319,9 +319,9 @@
d = mpd_pow10[j];
q = x / d;
x -= d * q;
- *s++ = '0' + q;
+ *s++ = '0' + (char)q;
}
- *s++ = '0' + x;
+ *s++ = '0' + (char)x;
/* remaining full words */
for (i=dec->len-2; i >= 0; --i) {
@@ -330,9 +330,9 @@
d = mpd_pow10[j];
q = x / d;
x -= d * q;
- *s++ = '0' + q;
+ *s++ = '0' + (char)q;
}
- *s++ = '0' + x;
+ *s++ = '0' + (char)x;
}
return s;
@@ -356,7 +356,7 @@
d = mpd_pow10[j];
q = x / d;
x -= d * q;
- *s++ = '0' + q;
+ *s++ = '0' + (char)q;
}
/* remaining full words */
@@ -368,7 +368,7 @@
d = mpd_pow10[j];
q = x / d;
x -= d * q;
- *s++ = '0' + q;
+ *s++ = '0' + (char)q;
}
}
More information about the Python-checkins
mailing list