mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +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);
|
||||
float divisor;
|
||||
if(!py_castfloat32(&argv[1], &divisor)) {
|
||||
py_clearexc(NULL);
|
||||
py_newnotimplemented(py_retval());
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user