Skip to content

Commit 435fee3

Browse files
committed
fixed small error in the code
1 parent fe3e19c commit 435fee3

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

code/ulab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "user/user.h"
3333
#include "vector/vectorise.h"
3434

35-
#define ULAB_VERSION 1.6.2
35+
#define ULAB_VERSION 1.7.1
3636
#define xstr(s) str(s)
3737
#define str(s) #s
3838
#if ULAB_NUMPY_COMPATIBILITY

code/ulab_create.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ mp_obj_t create_frombuffer(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw
677677
if(len < count) {
678678
mp_raise_ValueError(translate("buffer is smaller than requested size"));
679679
} else {
680-
len -= count;
680+
len = count;
681681
}
682682
}
683683
ndarray_obj_t *ndarray = ndarray_new_linear_array(len, dtype);

docs/ulab-change-log.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Fri, 15 Jan 2021
2+
3+
version 1.7.1
4+
5+
fixed small error in frombuffer
6+
7+
18
Thu, 14 Jan 2021
29

310
version 1.7.0

0 commit comments

Comments
 (0)