nsxiv36a4847
fix: compile error (#182)
* fix compile error * use variable instead of macro * Revert "use variable instead of macro" This reverts commit a14ef0b231c50e49906761010a4d4231ce4e3e36. * use local variable instead of macro * Revert "use local variable instead of macro" This reverts commit 7e049d55d94f5c003d90e1a10187356f6a7f54b2.
+2 −2
1 file changed
- M image.c +2 −2
| @@ -43,8 +43,8 @@ enum { DEF_GIF_DELAY = 75 }; | |||
| 43 | 43 | enum { DEF_WEBP_DELAY = 75 }; | |
| 44 | 44 | #endif | |
| 45 | 45 | ||
| 46 | − | static const float ZOOM_MIN = zoom_levels[0] / 100; | |
| 47 | − | static const float ZOOM_MAX = zoom_levels[ARRLEN(zoom_levels)-1] / 100; | |
| 46 | + | #define ZOOM_MIN (zoom_levels[0] / 100) | |
| 47 | + | #define ZOOM_MAX (zoom_levels[ARRLEN(zoom_levels)-1] / 100) | |
| 48 | 48 | ||
| 49 | 49 | void img_init(img_t *img, win_t *win) | |
| 50 | 50 | { | |