Skip to content

Commit ea91f42

Browse files
committed
suppress a warning
[SVN r20555]
1 parent 7fab3ce commit ea91f42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/object/class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ namespace objects
317317
// like, so we'll store the total size of the object
318318
// there. A negative number indicates that the extra
319319
// instance memory is not yet allocated to any holders.
320-
result->ob_size = -(offsetof(instance<>,storage) + instance_size);
320+
result->ob_size = -(static_cast<int>(offsetof(instance<>,storage) + instance_size));
321321
}
322322
return (PyObject*)result;
323323
}

0 commit comments

Comments
 (0)