diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-09-16 10:39:06 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-09-16 11:35:23 +0100 |
commit | 459ea0095c31eff835b25dd3eef48a4c073d05f9 (patch) | |
tree | ed7122cbcd6cb26ccf8b85bb1457645c801e292a /src/gallium/drivers/llvmpipe/lp_test_conv.c | |
parent | 858a2a2ac7b1c8f1a7f7c4b3c66b3919989798d4 (diff) |
llvmpipe: Make the code portable for MinGW.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_test_conv.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_conv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_conv.c b/src/gallium/drivers/llvmpipe/lp_test_conv.c index ae2697143f..9dcf58e5dc 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_conv.c +++ b/src/gallium/drivers/llvmpipe/lp_test_conv.c @@ -413,10 +413,10 @@ test_some(unsigned verbose, FILE *fp, unsigned long n) bool success = TRUE; for(i = 0; i < n; ++i) { - src_type = &conv_types[random() % num_types]; + src_type = &conv_types[rand() % num_types]; do { - dst_type = &conv_types[random() % num_types]; + dst_type = &conv_types[rand() % num_types]; } while (src_type == dst_type || src_type->norm != dst_type->norm); if(!test_one(verbose, fp, *src_type, *dst_type)) |