[PATCH] D113639: [test-suite] Fix signed integer overflow error for pc1cod.c
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 11:54:08 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rT27f9d2a448bc: [test-suite] Fix signed integer overflow error for pc1cod.c (authored by MatzeB).
Changed prior to commit:
https://reviews.llvm.org/D113639?vs=386641&id=387347#toc
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113639/new/
https://reviews.llvm.org/D113639
Files:
MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
Index: MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
===================================================================
--- MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
+++ MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
@@ -234,7 +234,7 @@
}
/* Use Linear congruential PRNG */
-int my_rand_r(int *seedp)
+unsigned my_rand_r(unsigned *seedp)
{
/* Knuth & Lewis */
unsigned x = *seedp * 1664525 + 1013904223;
@@ -246,7 +246,7 @@
{
int NumInput = 20000;
int Print;
- int random_seed = 1;
+ unsigned random_seed = 1;
if (argc == 2) NumInput = atoi(argv[1]);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113639.387347.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211115/fc3bd8ba/attachment.bin>
More information about the llvm-commits
mailing list