mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[db/misc] Cast ARRAY_SIZE to unsigned (avoids compiler warnings)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#define STOB(s) ((s) * 4)
|
||||
#define BTOS(b) ((b) / 4)
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
#define ARRAY_SIZE(x) ((unsigned int)(sizeof(x) / sizeof((x)[0])))
|
||||
|
||||
struct onekeyval {
|
||||
char *name;
|
||||
|
||||
Reference in New Issue
Block a user