Commit 15be869
committed
fix: float arguments in host function parameters
There was a small typo in _convert_value which logged an error whenever
a host function with float argument was called:
Exception ignored from cffi callback <function handle_args at 0x7fee3735b480>:
Traceback (most recent call last):
File ".../extism/extism.py", line 908, in handle_args
inp.append(_convert_value(inputs[i]))
File ".../extism/extism.py", line 648, in _convert_value
elif x.y == 3:
AttributeError: cdata 'ExtismVal' has no field 'y'1 parent 5b8da6e commit 15be869
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
217 | 233 | | |
218 | 234 | | |
219 | 235 | | |
| |||
0 commit comments