Skip to content

Commit 4488d29

Browse files
committed
Fix debug print type overflow
1 parent c80b720 commit 4488d29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Source/UnrealEnginePython/Private/UObject/UEPyLandscape.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ PyObject *py_ue_landscape_import(ue_PyUObject *self, PyObject * args)
6363
int size_y = component_y * quads_per_component + 1;
6464

6565
if (heightmap_buffer.len < (Py_ssize_t)(size_x * size_y * sizeof(uint16)))
66-
return PyErr_Format(PyExc_Exception, "not enough heightmap data, expecting %d bytes", size_x * size_y * sizeof(uint16));
66+
return PyErr_Format(PyExc_Exception, "not enough heightmap data, expecting %lu bytes", size_x * size_y * sizeof(uint16));
6767

6868
uint16 *data = (uint16 *)heightmap_buffer.buf;
6969

0 commit comments

Comments
 (0)