util/tests/vma: Fix warning c++11-narrowing
authorScott D Phillips <scott.d.phillips@intel.com>
Tue, 5 Jun 2018 16:29:43 +0000 (09:29 -0700)
committerScott D Phillips <scott.d.phillips@intel.com>
Tue, 5 Jun 2018 17:32:07 +0000 (10:32 -0700)
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@pnwbakers.com>
src/util/tests/vma/vma_random_test.cpp

index 88beb0838614acadbb34dae079b5040b6272bef1..de887fead30794c04679b80b335fffc7d4784e9e 100644 (file)
@@ -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");