mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
compiler/spirv: There is not need unqualify const in function vtn_string_literal
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26775>
This commit is contained in:
parent
fd11818828
commit
88c4de7e7b
1 changed files with 1 additions and 1 deletions
|
|
@ -542,7 +542,7 @@ vtn_string_literal(struct vtn_builder *b, const uint32_t *words,
|
|||
}
|
||||
#endif
|
||||
|
||||
const char *str = (char *)words;
|
||||
const char *str = (const char *)words;
|
||||
const char *end = memchr(str, 0, word_count * 4);
|
||||
vtn_fail_if(end == NULL, "String is not null-terminated");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue