[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2/channel.c
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Mar 1 13:51:28 PST 2006
Changes in directory llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2:
channel.c updated: 1.1 -> 1.2
---
Log message:
u matches unsigned int not unsigned long, so fix this broken program
---
Diffs of the changes: (+6 -2)
channel.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2/channel.c
diff -u llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2/channel.c:1.1 llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2/channel.c:1.2
--- llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2/channel.c:1.1 Tue Nov 5 12:51:11 2002
+++ llvm-test/MultiSource/Benchmarks/Ptrdist/yacr2/channel.c Wed Mar 1 15:51:15 2006
@@ -87,7 +87,9 @@
net = 0;
do {
line++;
- stat = fscanf(channelFP, "%u%u%u", &col, &bot, &top);
+ unsigned int c1, b1, t1;
+ stat = fscanf(channelFP, "%u%u%u", &c1, &b1, &t1);
+ col = c1; bot = b1; top = t1;
if (stat != EOF) {
if (stat == 3) {
/*
@@ -203,7 +205,9 @@
line = 0;
do {
line++;
- stat = fscanf(channelFP, "%u%u%u", &col, &bot, &top);
+ unsigned int c1, b1, t1;
+ stat = fscanf(channelFP, "%u%u%u", &c1, &b1, &t1);
+ col = c1; bot = b1; top = t1;
if (stat != EOF) {
if (stat == 3) {
/*
More information about the llvm-commits
mailing list