Skip to content

Commit

Permalink
fix indirection bug
Browse files Browse the repository at this point in the history
Co-authored-by: Ken Seehart <ken@seehart.com>
  • Loading branch information
ucodery and kenseehart committed May 23, 2024
1 parent a40b364 commit 11e3521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/extension-hatch/examplePy/temperature.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ temperature_celsius_to_fahrenheit(PyObject *self, PyObject *args)
long celsius;
PyObject *ret;

if (!PyArg_ParseTuple(args, "l", celsius))
if (!PyArg_ParseTuple(args, "l", &celsius))
return NULL;

celsius = (celsius * 9/5) + 32;
Expand All @@ -23,7 +23,7 @@ temperature_fahrenheit_to_celsius(PyObject *self, PyObject *args)
long fahrenheit;
PyObject *ret;

if (!PyArg_ParseTuple(args, "l", fahrenheit))
if (!PyArg_ParseTuple(args, "l", &fahrenheit))
return NULL;

fahrenheit = (fahrenheit - 32) * 9/5;
Expand Down

0 comments on commit 11e3521

Please sign in to comment.