Krolyxon
Commit 36a4847

Branches

Refs →

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.
Author
N-R-K
Date
2021-12-10 01:03 +0600
Committer
GitHub · 2021-12-09 22:03 +0300
Parent
79b8fef
Commit
36a4847bcfa64148d056e2bb2226341fd98cea29

+2 −2

1 file changed

  1. M image.c +2 −2
M image.c View
@@ -43,8 +43,8 @@ enum { DEF_GIF_DELAY = 75 };
4343 enum { DEF_WEBP_DELAY = 75 };
4444 #endif
4545
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)
4848
4949 void img_init(img_t *img, win_t *win)
5050 {