From 303e8d790acc6e996c6851f00fa98122b3f85000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20V=C3=B6r=C3=B6s?= Date: Sun, 24 Nov 2024 19:56:15 +0100 Subject: [PATCH] fix compilation error for complexes (#694) --- code/ulab.c | 2 +- code/utils/utils.c | 2 +- docs/ulab-change-log.md | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code/ulab.c b/code/ulab.c index b9999671..12f37027 100644 --- a/code/ulab.c +++ b/code/ulab.c @@ -33,7 +33,7 @@ #include "user/user.h" #include "utils/utils.h" -#define ULAB_VERSION 6.6.0 +#define ULAB_VERSION 6.6.1 #define xstr(s) str(s) #define str(s) #s diff --git a/code/utils/utils.c b/code/utils/utils.c index 8477f5de..17e6ca0a 100644 --- a/code/utils/utils.c +++ b/code/utils/utils.c @@ -286,7 +286,7 @@ mp_obj_t utils_spectrogram(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw uint8_t *array = (uint8_t *)in->array; - #if ULAB_FFT_IS_NUMPY_COMPATIBLE // ULAB_SUPPORTS_COMPLEX is automatically true + #if ULAB_FFT_IS_NUMPY_COMPATIBLE & ULAB_SUPPORTS_COMPLEX if(in->dtype == NDARRAY_COMPLEX) { uint8_t sz = 2 * sizeof(mp_float_t); for(size_t i = 0; i < len; i++) { diff --git a/docs/ulab-change-log.md b/docs/ulab-change-log.md index 11e4a648..c857f96d 100644 --- a/docs/ulab-change-log.md +++ b/docs/ulab-change-log.md @@ -1,3 +1,9 @@ +Sun, 24 Nov 2024 + +version 6.6.1 + + fix compilation error, for complexes + Wed, 9 Oct 2024 version 6.6.0