Simplify num2str()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 22:14:18 +0000 (15:14 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Wed, 18 Apr 2018 20:25:30 +0000 (13:25 -0700)
commitcbb8289d43ef6c822bceefecf7cb2ce6f203cfb5
tree82fbcc5fface4e749c9579c6ca6fc35c3d73fc79
parent41a87019871503bb85e19e622b6a5f47de6c2aeb
Simplify num2str()

Instead of translating the N2S_* constants into an array index inside
num2str(), make the N2S_* constants identical to the array index used
inside num2str(). This patch does not change the behavior of num2str().

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
lib/num2str.c
lib/num2str.h