Skip to content

Commit

Permalink
fix compilation error for complexes
Browse files Browse the repository at this point in the history
  • Loading branch information
v923z committed Nov 24, 2024
1 parent 2b74236 commit 550a8ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/ulab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion code/utils/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
6 changes: 6 additions & 0 deletions docs/ulab-change-log.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 550a8ca

Please sign in to comment.