From 1ce2acb4ef115e5da27c4a87cd33b54f6d427637 Mon Sep 17 00:00:00 2001 From: Anders Nissen Date: Thu, 24 Oct 2019 09:25:47 +0200 Subject: [PATCH] examples: use i64 in Fibonacci --- examples/fibonacci.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/fibonacci.v b/examples/fibonacci.v index d894efd8f6..3cef7cb02f 100644 --- a/examples/fibonacci.v +++ b/examples/fibonacci.v @@ -15,9 +15,9 @@ fn main() { stop := os.args[1].int() // Three consecutive terms of the sequence - mut a := 0 - mut b := 0 - mut c := 1 + mut a := i64(0) + mut b := i64(0) + mut c := i64(1) for i := 0; i < stop; i++ { // Set a and b to the next term