aboutsummaryrefslogtreecommitdiff
path: root/num_even_nums.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'num_even_nums.cpp')
-rw-r--r--num_even_nums.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/num_even_nums.cpp b/num_even_nums.cpp
index 5d5c240..1513c72 100644
--- a/num_even_nums.cpp
+++ b/num_even_nums.cpp
@@ -16,7 +16,7 @@ public:
* it also returns n - 1. eg. log10(100) = 2
* use bitwise and to check if it's odd
*/
- ans += (int)log10(i) & 1;
+ ans += log10(i) & 1;
return ans;
}
};