Xinqi Bao's Git

Refactor fmt_human() and fix a bug
authorLaslo Hunhold <[email protected]>
Mon, 21 May 2018 18:08:56 +0000 (20:08 +0200)
committerAaron Marcher <[email protected]>
Mon, 21 May 2018 18:28:57 +0000 (20:28 +0200)
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.


No differences found