[llvm-commits] CVS: llvm-www/demo/index.cgi
Tanya Lattner
tonic at nondot.org
Wed Sep 17 15:52:10 PDT 2008
Changes in directory llvm-www/demo:
index.cgi updated: 1.87 -> 1.88
---
Log message:
Should be argv[1] not argv[0].
---
Diffs of the changes: (+1 -1)
index.cgi | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm-www/demo/index.cgi
diff -u llvm-www/demo/index.cgi:1.87 llvm-www/demo/index.cgi:1.88
--- llvm-www/demo/index.cgi:1.87 Mon Jun 9 15:08:17 2008
+++ llvm-www/demo/index.cgi Wed Sep 17 17:51:20 2008
@@ -33,7 +33,7 @@
"int factorial(int X) {\n if (X == 0) return 1;\n" .
" return X*factorial(X-1);\n}\n\n" .
"int main(int argc, char **argv) {\n" .
- " printf(\"%d\\n\", factorial(atoi(argv[0])));\n}\n";
+ " printf(\"%d\\n\", factorial(atoi(argv[1])));\n}\n";
sub getname {
my ($extension) = @_;
More information about the llvm-commits
mailing list