diff Objects/object.c @ 36675:dba6494735d0 legacy-trunk

Revert backwards-incompatible const changes.
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 27 Feb 2006 16:46:16 +0000
parents 7fdc639bc5b4
children 83b860acfe95
line wrap: on
line diff
--- a/Objects/object.c	Mon Feb 27 16:31:12 2006 +0000
+++ b/Objects/object.c	Mon Feb 27 16:46:16 2006 +0000
@@ -1023,7 +1023,7 @@
 	PyObject *w, *res;
 
 	if (v->ob_type->tp_getattr != NULL)
-		return (*v->ob_type->tp_getattr)(v, name);
+		return (*v->ob_type->tp_getattr)(v, (char*)name);
 	w = PyString_InternFromString(name);
 	if (w == NULL)
 		return NULL;
@@ -1051,7 +1051,7 @@
 	int res;
 
 	if (v->ob_type->tp_setattr != NULL)
-		return (*v->ob_type->tp_setattr)(v, name, w);
+		return (*v->ob_type->tp_setattr)(v, (char*)name, w);
 	s = PyString_InternFromString(name);
 	if (s == NULL)
 		return -1;