Skip to content

Commit 303e8d7

Browse files
authored
fix compilation error for complexes (#694)
1 parent 2b74236 commit 303e8d7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

code/ulab.c

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

code/utils/utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ mp_obj_t utils_spectrogram(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw
286286

287287
uint8_t *array = (uint8_t *)in->array;
288288

289-
#if ULAB_FFT_IS_NUMPY_COMPATIBLE // ULAB_SUPPORTS_COMPLEX is automatically true
289+
#if ULAB_FFT_IS_NUMPY_COMPATIBLE & ULAB_SUPPORTS_COMPLEX
290290
if(in->dtype == NDARRAY_COMPLEX) {
291291
uint8_t sz = 2 * sizeof(mp_float_t);
292292
for(size_t i = 0; i < len; i++) {

docs/ulab-change-log.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sun, 24 Nov 2024
2+
3+
version 6.6.1
4+
5+
fix compilation error, for complexes
6+
17
Wed, 9 Oct 2024
28

39
version 6.6.0

0 commit comments

Comments
 (0)