mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-common: Fix assert() condition.
This commit is contained in:
@ -70,7 +70,7 @@ void vkd3d_dbg_printf(enum vkd3d_dbg_level level, const char *function, const ch
|
|||||||
if (vkd3d_dbg_get_level() < level)
|
if (vkd3d_dbg_get_level() < level)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
assert(level <= ARRAY_SIZE(debug_level_names));
|
assert(level < ARRAY_SIZE(debug_level_names));
|
||||||
|
|
||||||
fprintf(stderr, "%s:%s: ", debug_level_names[level], function);
|
fprintf(stderr, "%s:%s: ", debug_level_names[level], function);
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
|
Reference in New Issue
Block a user