From f274676654854e137fd6b0de372fe28d5f2d8b67 Mon Sep 17 00:00:00 2001 From: Palaiologos <27734421+kspalaiologos@users.noreply.github.com> Date: Wed, 5 Aug 2020 15:55:24 +0200 Subject: [PATCH] bugfix for bfpow --- bfvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfvm.c b/bfvm.c index e5c4f72a..32c54214 100644 --- a/bfvm.c +++ b/bfvm.c @@ -215,7 +215,7 @@ int main(void) { "}\n" #endif "type bfpow(type x, type y) {\n" - "type i = 0, s = x; for(; i < y; y++) s *= x; return s;\n" + "type i = 1, s = x; for(; i < y; y++) s *= x; return s;\n" "}\n" "int main(void) {\n" #ifndef FREESTANDING