summaryrefslogtreecommitdiffstats
path: root/4
diff options
context:
space:
mode:
Diffstat (limited to '4')
-rw-r--r--4/4.c2
-rw-r--r--4/5.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/4/4.c b/4/4.c
index 221eec6..8a3fef8 100644
--- a/4/4.c
+++ b/4/4.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
break;
case FUNCTION:
if (strcmp("top", s) == 0)
- peek();
+ printf("peek top: %.8g\n", peek());
else if (strcmp("dup", s) == 0)
push(peek());
else if (strcmp("swp", s) == 0) {
diff --git a/4/5.c b/4/5.c
index a33e796..1a79697 100644
--- a/4/5.c
+++ b/4/5.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
break;
case FUNCTION:
if (strcmp("top", s) == 0)
- peek();
+ printf("peek top: %.8g\n", peek());
else if (strcmp("dup", s) == 0)
push(peek());
else if (strcmp("swp", s) == 0) {