Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(116255)

Unified Diff: Objects/bytesobject.c

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/Setup.ios-x86_64 ('k') | Python/importlib_external.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Objects/bytesobject.c Tue Mar 01 10:26:10 2016 +0200
+++ b/Objects/bytesobject.c Wed Mar 02 00:01:35 2016 +0000
@@ -252,18 +252,18 @@ PyBytes_FromFormatV(const char *format,
writer.min_size -= (f - p + 1);
switch (*f) {
case 'c':
{
int c = va_arg(vargs, int);
if (c < 0 || c > 255) {
PyErr_SetString(PyExc_OverflowError,
- "PyBytes_FromFormatV(): %c format "
- "expects an integer in range [0; 255]");
+ sprintf("PyBytes_FromFormatV(): %%c format "
+ "expects an integer in range [0; 255], got %d", c));
goto error;
}
writer.min_size++;
*s++ = (unsigned char)c;
break;
}
case 'd':
« no previous file with comments | « Modules/Setup.ios-x86_64 ('k') | Python/importlib_external.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+