summaryrefslogtreecommitdiffstats
path: root/strtod.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-08 14:24:35 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-08 16:38:43 +0800
commit19b982d3dff0a942bccba9813bc3234e5cceb57f (patch)
tree53c010d8d9f4da31282204a047b057201dc9d755 /strtod.c
parent88fdf1b138afaead559456d1734eae88b4778f83 (diff)
downloadsubsurface-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