summaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.h
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-09 09:30:18 +0800
commitb9d7e440fd37a4da8455d80a71911a4fbcdbfa11 (patch)
tree724dd6844591d6ba276e591cbab0db62bf26998c /subsurfacestartup.h
parent8626778918b4dd5a304cbe970eded6cad759431b (diff)
downloadsubsurface-b9d7e440fd37a4da8455d80a71911a4fbcdbfa11.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 'subsurfacestartup.h')
0 files changed, 0 insertions, 0 deletions