git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebec70
)
util: Fix signed/unsigned integer comparison
author
Martin Schwenke
<martin@meltin.net>
Tue, 17 Mar 2020 05:05:20 +0000
(16:05 +1100)
committer
Martin Schwenke
<martins@samba.org>
Wed, 22 Apr 2020 01:48:02 +0000
(
01:48
+0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Apr 22 01:48:03 UTC 2020 on sn-devel-184
lib/util/debug.c
patch
|
blob
|
history
diff --git
a/lib/util/debug.c
b/lib/util/debug.c
index d7449c5c690ce8185aa0de3e2de1b040ab4b99f6..0b203cd45a3c28cf25c8142b7d7bdc4df86dae5a 100644
(file)
--- a/
lib/util/debug.c
+++ b/
lib/util/debug.c
@@
-189,7
+189,7
@@
static int debug_level_to_priority(int level)
};
int priority;
- if
( level >= ARRAY_SIZE(priority_map) || level < 0
)
+ if
(level < 0 || (size_t)level >= ARRAY_SIZE(priority_map)
)
priority = LOG_DEBUG;
else
priority = priority_map[level];