diff options
author | Guido van Rossum <guido@python.org> | 2000-01-20 22:32:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-01-20 22:32:56 (GMT) |
commit | bffd683f7356d92d4504b2bcaa7221fab3f52f4e (patch) | |
tree | fb68ae112139013c715e82c4b03678feab52ab21 /Objects/stringobject.c | |
parent | e0a928dc1ec74f487471d102ae6efacc92055aa6 (diff) | |
download | cpython-bffd683f7356d92d4504b2bcaa7221fab3f52f4e.zip cpython-bffd683f7356d92d4504b2bcaa7221fab3f52f4e.tar.gz cpython-bffd683f7356d92d4504b2bcaa7221fab3f52f4e.tar.bz2 |
The rest of the changes by Trent Mick and Dale Nagata for warning-free
compilation on NT Alpha. Mostly added casts etc.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index dc47f9e..cb264e9 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -104,7 +104,7 @@ PyString_FromStringAndSize(str, size) #ifdef INTERN_STRINGS op->ob_sinterned = NULL; #endif - _Py_NewReference(op); + _Py_NewReference((PyObject *)op); if (str != NULL) memcpy(op->ob_sval, str, size); op->ob_sval[size] = '\0'; @@ -154,7 +154,7 @@ PyString_FromString(str) #ifdef INTERN_STRINGS op->ob_sinterned = NULL; #endif - _Py_NewReference(op); + _Py_NewReference((PyObject *)op); strcpy(op->ob_sval, str); #ifndef DONT_SHARE_SHORT_STRINGS if (size == 0) { @@ -317,7 +317,7 @@ string_concat(a, bb) #ifdef INTERN_STRINGS op->ob_sinterned = NULL; #endif - _Py_NewReference(op); + _Py_NewReference((PyObject *)op); memcpy(op->ob_sval, a->ob_sval, (int) a->ob_size); memcpy(op->ob_sval + a->ob_size, b->ob_sval, (int) b->ob_size); op->ob_sval[size] = '\0'; @@ -352,7 +352,7 @@ string_repeat(a, n) #ifdef INTERN_STRINGS op->ob_sinterned = NULL; #endif - _Py_NewReference(op); + _Py_NewReference((PyObject *)op); for (i = 0; i < size; i += a->ob_size) memcpy(op->ob_sval+i, a->ob_sval, (int) a->ob_size); op->ob_sval[size] = '\0'; |