Linus Torvalds
b9d7e440fd
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>
2014-01-09 09:30:18 +08:00
..
2013-12-12 03:26:39 +01:00
2013-05-18 09:49:37 -07:00
2013-11-30 09:28:42 -08:00
2013-10-03 12:13:48 -07:00
2013-11-29 12:11:12 -08:00
2013-11-30 09:28:42 -08:00
2013-11-02 03:37:31 +01:00
2013-12-29 04:13:18 -08:00
2013-11-21 15:54:28 -08:00
2013-12-29 04:13:18 -08:00
2013-12-24 07:24:11 -08:00
2013-10-15 04:37:31 -07:00
2013-11-30 12:01:32 -08:00
2014-01-09 09:28:45 +08:00
2013-12-09 15:51:17 +02:00
2013-12-24 07:24:12 -08:00
2013-12-24 07:24:11 -08:00
2013-12-04 15:49:55 -08:00
2014-01-09 09:29:40 +08:00
2013-12-27 11:04:35 -08:00
2013-12-24 16:26:00 -08:00
2013-12-26 08:42:20 -08:00
2013-12-02 09:44:55 -08:00
2013-10-15 04:23:43 -07:00
2013-09-16 19:21:13 -03:00
2013-12-20 09:53:04 -08:00
2013-12-20 09:53:04 -08:00
2013-09-18 23:23:04 -03:00
2013-10-15 04:37:31 -07:00
2014-01-09 09:28:31 +08:00
2013-12-28 14:55:23 -08:00
2013-12-20 09:53:05 -08:00
2013-12-28 14:56:01 -08:00
2013-12-05 07:31:29 -08:00
2013-12-12 03:26:39 +01:00
2013-12-12 03:26:39 +01:00
2013-12-12 03:26:39 +01:00
2014-01-09 09:30:18 +08:00
2013-12-06 09:49:05 -08:00
2013-12-18 13:38:40 -08:00
2013-12-06 11:56:00 -08:00
2013-12-08 16:18:00 +01:00
2013-12-04 15:52:21 +02:00
2013-12-04 15:52:21 +02:00
2013-12-08 09:41:42 +01:00
2013-12-24 07:24:11 -08:00
2013-11-30 18:56:25 +02:00
2013-10-03 12:13:48 -07:00
2013-11-29 11:02:15 -08:00
2014-01-09 09:28:19 +08:00
2013-12-24 07:24:11 -08:00
2013-12-07 06:49:52 -08:00
2013-11-30 12:01:32 -08:00
2013-11-30 09:28:42 -08:00
2013-11-30 09:28:42 -08:00
2013-12-20 09:53:05 -08:00
2013-12-20 09:53:05 -08:00
2013-12-28 21:04:07 -08:00
2013-12-20 09:53:05 -08:00
2013-12-12 03:26:39 +01:00
2013-11-13 11:58:47 +09:00
2013-11-29 11:02:15 -08:00
2013-12-20 09:53:04 -08:00
2013-11-02 17:10:34 +01:00
2013-12-10 05:52:26 +01:00