diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-08 14:24:35 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-08 16:38:43 +0800 |
commit | 19b982d3dff0a942bccba9813bc3234e5cceb57f (patch) | |
tree | 53c010d8d9f4da31282204a047b057201dc9d755 /strtod.c | |
parent | 88fdf1b138afaead559456d1734eae88b4778f83 (diff) | |
download | subsurface-19b982d3dff0a942bccba9813bc3234e5cceb57f.tar.gz |
Make 'string_to_grams()' use proper type safe types
Make it use 'weight_t' and hide the "grams" part inside the type. That
was the whole point of the weight_t type, after all. Returning a
"double" was always bogus, since we internally always do integer grams
(and the function actually used "rint()" to get all the rounding right
anyway).
As a result, it's now called "string_to_weight()".
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'strtod.c')
0 files changed, 0 insertions, 0 deletions