Commit f50fb541 authored by Alexander A. Maly's avatar Alexander A. Maly

Clearing warnings in kmath

parent a26118ed
...@@ -407,7 +407,7 @@ int Math::ipow(int a, int b) ...@@ -407,7 +407,7 @@ int Math::ipow(int a, int b)
return 0; return 0;
} }
unsigned int res = 1U << b; unsigned int res = 1U << b;
return (b & 1) ? -res : res; return (b & 1) ? 0 - res : res;
} }
int64_t y = a, res = 1; int64_t y = a, res = 1;
...@@ -766,7 +766,7 @@ String Converter::sprintfReal( ...@@ -766,7 +766,7 @@ String Converter::sprintfReal(
expform = true; expform = true;
} }
if (!expform) { if (!expform) {
sdecimals -= ::floor(::log(absVal) / ::log(10.0)); sdecimals -= (int) ::floor(::log(absVal) / ::log(10.0));
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment