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; }