We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fab3ce commit ea91f42Copy full SHA for ea91f42
1 file changed
src/object/class.cpp
@@ -317,7 +317,7 @@ namespace objects
317
// like, so we'll store the total size of the object
318
// there. A negative number indicates that the extra
319
// instance memory is not yet allocated to any holders.
320
- result->ob_size = -(offsetof(instance<>,storage) + instance_size);
+ result->ob_size = -(static_cast<int>(offsetof(instance<>,storage) + instance_size));
321
}
322
return (PyObject*)result;
323
0 commit comments