From ea91f4217a3f41e5c42c91f79bf73044199861d3 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 29 Oct 2003 23:16:36 +0000 Subject: [PATCH] suppress a warning [SVN r20555] --- src/object/class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/class.cpp b/src/object/class.cpp index 0bc59c12..ea667532 100644 --- a/src/object/class.cpp +++ b/src/object/class.cpp @@ -317,7 +317,7 @@ namespace objects // like, so we'll store the total size of the object // there. A negative number indicates that the extra // instance memory is not yet allocated to any holders. - result->ob_size = -(offsetof(instance<>,storage) + instance_size); + result->ob_size = -(static_cast(offsetof(instance<>,storage) + instance_size)); } return (PyObject*)result; }