Skip to content

Commit b863982

Browse files
author
Roberto De Ioris
authored
Merge pull request 20tab#252 from recogni/umaster
Fix debug print type overflow
2 parents c80b720 + 4488d29 commit b863982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)