From 2aaba721fb5ae6c973b586aaec0b05bfbb722077 Mon Sep 17 00:00:00 2001 From: DarkWarrior703 <56077342+DarkWarrior703@users.noreply.github.com> Date: Sat, 25 Apr 2020 22:38:53 +0300 Subject: [PATCH] Update double_factorial.cpp --- math/double_factorial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/double_factorial.cpp b/math/double_factorial.cpp index 6b9ff6500..1b09bebb4 100644 --- a/math/double_factorial.cpp +++ b/math/double_factorial.cpp @@ -10,7 +10,7 @@ of a number and is denoted by !! */ uint64_t double_factorial_iterative(uint64_t n) { uint64_t res = 1; - for ( unsigned long long i = n; i >= 0; i -= 2 ) { + for ( uint64_t i = n; i >= 0; i -= 2 ) { if (i == 0 || i == 1) return res; res *= i; }