summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprepare2
-rwxr-xr-xrun2
2 files changed, 2 insertions, 2 deletions
diff --git a/prepare b/prepare
index ecd3753..c4d3009 100755
--- a/prepare
+++ b/prepare
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-cd "$1"
+cd $(("$1"))
gcc -Wall -pedantic -O3 -march=native -mtune=native -flto -o "part$2" "part$2.c"
diff --git a/run b/run
index 7bef778..ceed5a4 100755
--- a/run
+++ b/run
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-./$1/part$2 "$3"
+./$(("$1"))/part$2 "$3"