Skip to content

Commit a05ec05

Browse files
authored
Fix #643 (#645)
* Fix #643 * Update to version 6.4.1
1 parent 5279de7 commit a05ec05

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

code/ndarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ ndarray_obj_t *ndarray_from_mp_obj(mp_obj_t obj, uint8_t other_type) {
17381738
mp_float_t *array = (mp_float_t *)ndarray->array;
17391739
array[0] = mp_obj_get_float(obj);
17401740
} else if(mp_obj_is_bool(obj)) {
1741-
ndarray = ndarray_new_linear_array(1, NDARRAY_BOOLEAN);
1741+
ndarray = ndarray_new_linear_array(1, NDARRAY_BOOL);
17421742
uint8_t *array = (uint8_t *)ndarray->array;
17431743
if(obj == mp_const_true) {
17441744
*array = 1;

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.4.0
36+
#define ULAB_VERSION 6.4.1
3737
#define xstr(s) str(s)
3838
#define str(s) #s
3939

docs/ulab-change-log.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Thu, 10 Aug 2023
2+
3+
version 6.4.1
4+
5+
```
6+
fix BOOLEAN issue, which would cause numpy.where funciton abnormally on RP2040(#643)
7+
```
8+
19
Thu, 20 Jul 2023
210

311
version 6.4.0
@@ -31,13 +39,13 @@ version 6.3.1
3139
version 6.3.0
3240

3341
add bitwise operators
34-
42+
3543
Wed, 17 May 2023
3644

3745
version 6.1.1
3846

3947
fix ndarray subscription, when value is NULL
40-
48+
4149
Tue, 16 May 2023
4250

4351
version 6.1.0
@@ -55,7 +63,7 @@ Sun, 7 May 2023
5563
version 6.0.12
5664

5765
ndarray_from_mp_obj correctly treats Boolean arguments
58-
66+
5967
Sat, 6 May 2023
6068

6169
version 6.0.11
@@ -67,19 +75,19 @@ Sat, 6 May 2023
6775
version 6.0.10
6876

6977
fix binary division
70-
78+
7179
Sun, 21 Jan 2023
7280

7381
version 6.0.6
7482

7583
raise proper exception in arange
76-
84+
7785
Sun, 21 Jan 2023
7886

7987
version 6.0.7
8088

8189
treat empty arrays in sort_complex correctly
82-
90+
8391
Sun, 21 Jan 2023
8492

8593
version 6.0.5
@@ -91,7 +99,7 @@ Sun, 15 Jan 2023
9199
version 6.0.4
92100

93101
fix dot function
94-
102+
95103
Sat, 14 Jan 2023
96104

97105
version 6.0.3
@@ -227,7 +235,7 @@ version 4.2.0
227235
Wed, 12 Jan 2022
228236

229237
version 4.2.0
230-
238+
231239
implement numpy.save, numpy.load
232240

233241
Wed, 12 Jan 2022

0 commit comments

Comments
 (0)