Skip to content

Commit 412b13f

Browse files
authored
fix binary division (#611)
1 parent 8c3e105 commit 412b13f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

code/ndarray_operators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ mp_obj_t ndarray_binary_true_divide(ndarray_obj_t *lhs, ndarray_obj_t *rhs,
652652
} else if(rhs->dtype == NDARRAY_INT16) {
653653
BINARY_LOOP(results, mp_float_t, int16_t, int16_t, larray, lstrides, rarray, rstrides, /);
654654
} else if(rhs->dtype == NDARRAY_FLOAT) {
655-
BINARY_LOOP(results, mp_float_t, uint16_t, mp_float_t, larray, lstrides, rarray, rstrides, /);
655+
BINARY_LOOP(results, mp_float_t, int16_t, mp_float_t, larray, lstrides, rarray, rstrides, /);
656656
}
657657
} else if(lhs->dtype == NDARRAY_FLOAT) {
658658
if(rhs->dtype == NDARRAY_UINT8) {

code/ulab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "user/user.h"
3434
#include "utils/utils.h"
3535

36-
#define ULAB_VERSION 6.0.9
36+
#define ULAB_VERSION 6.0.10
3737
#define xstr(s) str(s)
3838
#define str(s) #s
3939

docs/ulab-change-log.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sat, 6 May 2023
2+
3+
version 6.0.10
4+
5+
fix binary division
6+
17
Sun, 21 Jan 2023
28

39
version 6.0.6

0 commit comments

Comments
 (0)