mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed warnings in libslic3r
This commit is contained in:
parent
471331e8c1
commit
cb916c4dda
30 changed files with 129 additions and 147 deletions
|
@ -414,13 +414,13 @@ std::string format_memsize_MB(size_t n)
|
|||
scale *= 1000;
|
||||
}
|
||||
char buf[8];
|
||||
sprintf(buf, "%d", n);
|
||||
sprintf(buf, "%d", (int)n);
|
||||
out = buf;
|
||||
while (scale != 1) {
|
||||
scale /= 1000;
|
||||
n = n2 / scale;
|
||||
n2 = n2 % scale;
|
||||
sprintf(buf, ",%03d", n);
|
||||
sprintf(buf, ",%03d", (int)n);
|
||||
out += buf;
|
||||
}
|
||||
return out + "MB";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue