[PATCH] D113639: [test-suite] Fix signed integer overflow error for pc1cod.c

Shrill Shrestha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 13:26:37 PST 2021


Shrill updated this revision to Diff 386641.
Shrill added a comment.

Change line endings from CR+LF to LF.


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.386641.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211111/df61f5b4/attachment.bin>


More information about the llvm-commits mailing list