]> granicus.if.org Git - python/commitdiff
Fixed incompatible pointer warning.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 27 Dec 2008 14:58:17 +0000 (14:58 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 27 Dec 2008 14:58:17 +0000 (14:58 +0000)
Objects/unicodeobject.c

index 1b6a4538a94ff48527dc6e6360c4ddef76e80af6..50476ea80beca8bc46fdf438d4bdd82b839cdbbe 100644 (file)
@@ -4111,7 +4111,7 @@ static int encode_mbcs(PyObject **repr,
     else {
        /* Extend string object */
        n = PyBytes_Size(*repr);
-       if (_PyBytes_Resize(&repr, n + mbcssize) < 0)
+       if (_PyBytes_Resize(repr, n + mbcssize) < 0)
            return -1;
     }