Przeglądaj źródła

fix a bug of `vec2.__truediv__`

blueloveTH 1 rok temu
rodzic
commit
389adc64d2
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/modules/linalg.c

+ 1 - 0
src/modules/linalg.c

@@ -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;
     }