mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
fix a bug of vec2.__truediv__
This commit is contained in:
parent
972f86f781
commit
389adc64d2
@ -149,6 +149,7 @@ static bool vec2__truediv__(int argc, py_Ref argv) {
|
|||||||
PY_CHECK_ARGC(2);
|
PY_CHECK_ARGC(2);
|
||||||
float divisor;
|
float divisor;
|
||||||
if(!py_castfloat32(&argv[1], &divisor)) {
|
if(!py_castfloat32(&argv[1], &divisor)) {
|
||||||
|
py_clearexc(NULL);
|
||||||
py_newnotimplemented(py_retval());
|
py_newnotimplemented(py_retval());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user