Skip to content

Commit 11e3521

Browse files
ucoderykenseehart
andcommitted
fix indirection bug
Co-authored-by: Ken Seehart <ken@seehart.com>
1 parent a40b364 commit 11e3521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/extension-hatch/examplePy/temperature.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ temperature_celsius_to_fahrenheit(PyObject *self, PyObject *args)
77
long celsius;
88
PyObject *ret;
99

10-
if (!PyArg_ParseTuple(args, "l", celsius))
10+
if (!PyArg_ParseTuple(args, "l", &celsius))
1111
return NULL;
1212

1313
celsius = (celsius * 9/5) + 32;
@@ -23,7 +23,7 @@ temperature_fahrenheit_to_celsius(PyObject *self, PyObject *args)
2323
long fahrenheit;
2424
PyObject *ret;
2525

26-
if (!PyArg_ParseTuple(args, "l", fahrenheit))
26+
if (!PyArg_ParseTuple(args, "l", &fahrenheit))
2727
return NULL;
2828

2929
fahrenheit = (fahrenheit - 32) * 9/5;

0 commit comments

Comments
 (0)