Skip to content

Commit

Permalink
Merge pull request #151 from isidentical/resolve-deprecation-warnings
Browse files Browse the repository at this point in the history
resolve deprecation warnings about implicit int conversion
  • Loading branch information
olls authored Dec 16, 2019
2 parents ce301b9 + a7183d6 commit 12abbe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render_c_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ fill_lighting_buffer(PyObject *lights, PyObject *bk_objects, PyObject *map, Sett
.world_x = PyLong_AsLong(PyDict_GetItemString(py_light, "x")),
.world_y = PyLong_AsLong(PyDict_GetItemString(py_light, "y")),
.z = PyLong_AsLong(PyDict_GetItemString(py_light, "z")),
.radius = PyLong_AsLong(PyDict_GetItemString(py_light, "radius")),
.radius = PyLong_AsLong(PyNumber_Long(PyDict_GetItemString(py_light, "radius"))),
.width = get_long_from_PyDict_or(py_light, "source_width", 1),
.height = get_long_from_PyDict_or(py_light, "source_height", 1),
.rgb = PyColour_AsColour(PyDict_GetItemString(py_light, "colour"))
Expand Down

0 comments on commit 12abbe4

Please sign in to comment.