diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c index 78e71da..37edfa4 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -1046,7 +1046,10 @@ PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec) | |||
| 1046 | if (sec) | 1046 | if (sec) |
| 1047 | *sec = (int32_t)val; | 1047 | *sec = (int32_t)val; |
| 1048 | if (usec) | 1048 | if (usec) |
| 1049 | *usec = (int32_t)fabs((val - (int64_t)val) * 1000000); | 1049 | { |
| 1050 | val = fabs((val - (int64_t)val) * 1000000); | ||
| 1051 | *usec = (int32_t)val; | ||
| 1052 | } | ||
| 1050 | } | 1053 | } |
| 1051 | 1054 | ||
| 1052 | int plist_data_compare(const void *a, const void *b) | 1055 | int plist_data_compare(const void *a, const void *b) |
