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:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user