Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GcodeProcessorLib/fpconv.cpp')
-rw-r--r--GcodeProcessorLib/fpconv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/GcodeProcessorLib/fpconv.cpp b/GcodeProcessorLib/fpconv.cpp
index e22731a..9c2b8ee 100644
--- a/GcodeProcessorLib/fpconv.cpp
+++ b/GcodeProcessorLib/fpconv.cpp
@@ -190,7 +190,7 @@ static int generate_digits(Fp* fp, Fp* upper, Fp* lower, char* digits, int* K)
for (divp = tens + 10; kappa > 0; divp++) {
unsigned long long div = *divp;
- unsigned digit = part1 / div;
+ unsigned digit = (unsigned int)(part1 / div);
if (digit || idx) {
digits[idx++] = digit + '0';
@@ -216,7 +216,7 @@ static int generate_digits(Fp* fp, Fp* upper, Fp* lower, char* digits, int* K)
delta *= 10;
kappa--;
- unsigned digit = part2 >> -one.exp;
+ unsigned digit = (unsigned int)(part2 >> -one.exp);
if (digit || idx) {
digits[idx++] = digit + '0';
}