diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-08 14:24:35 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-09 09:30:18 +0800 |
commit | b9d7e440fd37a4da8455d80a71911a4fbcdbfa11 (patch) | |
tree | 724dd6844591d6ba276e591cbab0db62bf26998c /po/es_ES.po | |
parent | 8626778918b4dd5a304cbe970eded6cad759431b (diff) | |
download | subsurface-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 'po/es_ES.po')
0 files changed, 0 insertions, 0 deletions