[db/misc] Cast ARRAY_SIZE to unsigned (avoids compiler warnings)

This commit is contained in:
ejurgensen
2018-09-04 20:07:05 +02:00
parent 350361e8bb
commit 16e375e637
3 changed files with 8 additions and 8 deletions

View File

@@ -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;