diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2021-11-24 18:01:29 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-03 17:48:17 +0000 |
commit | 80bf9c7b978ac273ef979b6bafc351153669694d (patch) | |
tree | 030034cefbdb0669637efed92f05c01153b6b21d | |
parent | 516aee64cca36a6e2408bae0cf026a1c86aedc78 (diff) |
r300/compiler/tests: print regoff_t as size_t
fixes compilation on musl
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13949>
-rw-r--r-- | src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c b/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c index 04c01f1b443..deb051f82cf 100644 --- a/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c +++ b/src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c @@ -99,8 +99,9 @@ static int regex_helper( err_code = regexec(®ex, search_str, num_matches, matches, 0); DBG("Search string: '%s'\n", search_str); for (i = 0; i < num_matches; i++) { - DBG("Match %u start = %d end = %d\n", i, - matches[i].rm_so, matches[i].rm_eo); + DBG("Match %u start = %zu end = %zu\n", i, + (size_t)matches[i].rm_so, + (size_t)matches[i].rm_eo); } if (err_code) { regerror(err_code, ®ex, err_buf, REGEX_ERR_BUF_SIZE); |