Skip to content

Commit c8c9ae2

Browse files
authored
[LIBCLC] Set charSize when calling __assertfail (#6370)
The missing parameter was causing the incorrect formatting of the assert messages.
1 parent a1a43b4 commit c8c9ae2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#include <spirv/spirv.h>
22

33
void __assertfail(const char *__message, const char *__file, unsigned __line,
4-
const char *__function);
4+
const char *__function, size_t __charSize);
55

66
_CLC_DECL void __assert_fail(const char *expr, const char *file,
77
unsigned int line, const char *func) {
8-
__assertfail(expr, file, line, func);
8+
__assertfail(expr, file, line, func, 1);
99
}
1010

1111
_CLC_DECL void _wassert(const char *_Message, const char *_File,
1212
unsigned _Line) {
13-
__assertfail(_Message, _File, _Line, 0);
13+
__assertfail(_Message, _File, _Line, 0, 1);
1414
}

0 commit comments

Comments
 (0)