diff options
| author | 2021-11-06 23:23:56 -0700 | |
|---|---|---|
| committer | 2022-09-05 01:27:17 +0200 | |
| commit | eeb22f94307a2c3f5f54275deb8d270b683df216 (patch) | |
| tree | a64c5fd689479d4263ca5f4665976a41d5f7e761 | |
| parent | e00615023c2108ba457a9089b900b14bbc9bb73b (diff) | |
| download | libplist-eeb22f94307a2c3f5f54275deb8d270b683df216.tar.gz libplist-eeb22f94307a2c3f5f54275deb8d270b683df216.tar.bz2 | |
Fix up warning with `-Wbad-function-cast`
| -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) |
