Mesa (master): util/tests/vma: Fix warning c++11-narrowing
Scott D Phillips
scott-ph at kemper.freedesktop.org
Tue Jun 5 17:34:05 UTC 2018
Module: Mesa
Branch: master
Commit: 08535dd8860951ce4572cd2590e417a1f3d96b3d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=08535dd8860951ce4572cd2590e417a1f3d96b3d
Author: Scott D Phillips <scott.d.phillips at intel.com>
Date: Tue Jun 5 09:29:43 2018 -0700
util/tests/vma: Fix warning c++11-narrowing
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106801
Fixes: 943fecc569 ("util: Add a randomized test for the virtual memory allocator")
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
---
src/util/tests/vma/vma_random_test.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/tests/vma/vma_random_test.cpp b/src/util/tests/vma/vma_random_test.cpp
index 88beb08386..de887fead3 100644
--- a/src/util/tests/vma/vma_random_test.cpp
+++ b/src/util/tests/vma/vma_random_test.cpp
@@ -236,7 +236,7 @@ int main(int argc, char **argv)
errx(1, "USAGE: %s seed iter_count\n", argv[0]);
}
- random_test r{seed};
+ random_test r{(uint_fast32_t)seed};
r.test(count);
printf("ok\n");
More information about the mesa-commit
mailing list