From 75585d4ec18c3b4d42d033c0004a61b6d0704d30 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 20 Aug 2002 14:31:35 +0000 Subject: getinstclassname(): Squash new compiler wng in assert (comparison of signed vs unsigned). --- Objects/classobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/classobject.c b/Objects/classobject.c index cbbb3c4..f698cc3 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -2328,7 +2328,7 @@ getinstclassname(PyObject *inst, char *buf, int bufsize) PyObject *class; if (inst == NULL) { - assert(bufsize > strlen("nothing")); + assert(bufsize > 0 && (size_t)bufsize > strlen("nothing")); strcpy(buf, "nothing"); return; } -- cgit v0.12