summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2018-05-21 20:08:56 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-21 20:28:57 +0200
commit37f48c7d87c094d48a80e6e42cceb0e39fd2f997 (patch)
tree37b71f8c5a78befb648e081ebe66c6c67f582940 /components
parent13831af6218a88b40206f6a09add215dac150680 (diff)
Refactor fmt_human() and fix a bug
It is not necessary to copy memory or anything. Just keep a pointer to the active prefix-array and assign the length of the arrays to a variable. Make the code more readable by using a switch, be more strict when an invalid base is passed to it and fix a small oversight in the bottom of the code where the base 1024 was forgotten to generalized.
Diffstat (limited to 'components')
0 files changed, 0 insertions, 0 deletions