fix binary division (#611)

This commit is contained in:
Zoltán Vörös 2023-05-06 20:40:06 +02:00 committed by GitHub
parent 8c3e1058d4
commit 412b13fb1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -652,7 +652,7 @@ mp_obj_t ndarray_binary_true_divide(ndarray_obj_t *lhs, ndarray_obj_t *rhs,
} else if(rhs->dtype == NDARRAY_INT16) {
BINARY_LOOP(results, mp_float_t, int16_t, int16_t, larray, lstrides, rarray, rstrides, /);
} else if(rhs->dtype == NDARRAY_FLOAT) {
BINARY_LOOP(results, mp_float_t, uint16_t, mp_float_t, larray, lstrides, rarray, rstrides, /);
BINARY_LOOP(results, mp_float_t, int16_t, mp_float_t, larray, lstrides, rarray, rstrides, /);
}
} else if(lhs->dtype == NDARRAY_FLOAT) {
if(rhs->dtype == NDARRAY_UINT8) {

View file

@ -33,7 +33,7 @@
#include "user/user.h"
#include "utils/utils.h"
#define ULAB_VERSION 6.0.9
#define ULAB_VERSION 6.0.10
#define xstr(s) str(s)
#define str(s) #s

View file

@ -1,3 +1,9 @@
Sat, 6 May 2023
version 6.0.10
fix binary division
Sun, 21 Jan 2023
version 6.0.6