diff options
author | Dave MacLachlan | 2021-11-06 23:23:56 -0700 |
---|---|---|
committer | Nikias Bassen | 2022-09-05 01:27:17 +0200 |
commit | eeb22f94307a2c3f5f54275deb8d270b683df216 (patch) | |
tree | a64c5fd689479d4263ca5f4665976a41d5f7e761 /src | |
parent | e00615023c2108ba457a9089b900b14bbc9bb73b (diff) | |
download | libplist-eeb22f94307a2c3f5f54275deb8d270b683df216.tar.gz libplist-eeb22f94307a2c3f5f54275deb8d270b683df216.tar.bz2 |
Fix up warning with `-Wbad-function-cast`
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) if (sec) *sec = (int32_t)val; if (usec) - *usec = (int32_t)fabs((val - (int64_t)val) * 1000000); + { + val = fabs((val - (int64_t)val) * 1000000); + *usec = (int32_t)val; + } } int plist_data_compare(const void *a, const void *b) |