]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/libpy.c
fix for brain dead egcs - this stupid compiler not only doesn't compile what it shoul...
[wxWidgets.git] / wxPython / src / libpy.c
index 450467bd13c2bca64a8092bc7a8e16b21e64f487..7e400062a839584cd8fca2ec59e730fa6af70cde 100644 (file)
@@ -317,11 +317,11 @@ SWIG_GetPtr(char *c, void **ptr, char *t)
   if (*c != '_') {
     *ptr = (void *) 0;
     if (strcmp(c,"NULL") == 0) return (char *) 0;
-    else c;
+    else return c;
   }
   c++;
   /* Extract hex value from pointer */
-  while (d = *c) {
+  while ((d = *c) != 0) {
     if ((d >= '0') && (d <= '9'))
       p = (p << 4) + (d - '0');
     else if ((d >= 'a') && (d <= 'f'))