Skip to content

Commit c91901d

Browse files
committed
rainbowio: Fix some things the unix build errors about
1 parent dfef501 commit c91901d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

shared-bindings/rainbowio/__init__.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#ifndef CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
2828
#define CP_SHARED_BINDINGS_RAINBOWIO_INIT_H
2929
#include <stdint.h>
30+
#include "py/misc.h"
3031

31-
const int32_t colorwheel(float pos);
32+
int32_t colorwheel(mp_float_t pos);
3233

3334
#endif // CP_SHARED_BINDINGS_RAINBOWIO_INIT_H

shared-module/rainbowio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include "shared-bindings/rainbowio/__init__.h"
2828

29-
const int32_t colorwheel(float pos) {
29+
int32_t colorwheel(mp_float_t pos) {
3030
if (pos > 255) {
3131
pos = pos - ((uint32_t)(pos / 256) * 256);
3232
}

0 commit comments

Comments
 (0)