]> www.ginac.de Git - cln.git/blobdiff - examples/fibonacci.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / examples / fibonacci.cc
index df975125ff41fb885a5fdb7eb73f03f4d2df3c72..57e014a8be908eba87a946a4d369ab3fec5c831d 100644 (file)
@@ -88,7 +88,7 @@ const cl_I fibonacci_compact (int n)
        cl_I u = 0;
        cl_I v = 1;
        cl_I m = n/2; // floor(n/2)
-       for (uintL bit=integer_length(m); bit>0; --bit) {
+       for (uintC bit=integer_length(m); bit>0; --bit) {
                // Since a squaring is cheaper than a multiplication, better use
                // three squarings instead of one multiplication and two squarings.
                cl_I u2 = square(u);