1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 05:31:53 +02:00

b2/eval.c (decode_mult): also support "G" prefix

Not that we'd need giga-anything anytime soon, but since all the rest
also recognizes G, we support it here for consistency.
This commit is contained in:
Werner Almesberger 2012-05-21 22:35:55 -03:00
parent 2c5850ebe6
commit 2014e6053e

View File

@ -77,6 +77,9 @@ static int decode_mult(char c, double *mult)
case 'M': case 'M':
*mult = 1e6; *mult = 1e6;
return 1; return 1;
case 'G':
*mult = 1e9;
return 1;
default: default:
return 0; return 0;
} }