From b24911fd4f5f772c9dc242ffab133806ab2cbab9 Mon Sep 17 00:00:00 2001
From: Nikias Bassen
Date: Mon, 5 Sep 2022 01:31:45 +0200
Subject: jplist: Fix warning with `-Wbad-function-cast`

---
 src/jplist.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jplist.c b/src/jplist.c
index 6a44f8c..e615299 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -523,8 +523,8 @@ static plist_t parse_primitive(const char* js, jsmntok_info_t* ti, int* index)
                     break;
                 }
                 if (fendp+1 < str_end && (*fendp == 'e' || *fendp == 'E') && (isdigit(*(fendp+1)) || ((*(fendp+1) == '-') && fendp+2 < str_end && isdigit(*(fendp+2))))) {
-                    double exp = (double)parse_decimal(fendp+1, str_end, &fendp);
-                    dval = dval * pow(10, exp);
+                    int64_t exp = parse_decimal(fendp+1, str_end, &fendp);
+                    dval = dval * pow(10, (double)exp);
                 } else {
                     PLIST_JSON_ERR("%s: invalid character at offset %d when parsing floating point value\n", __func__, (int)(fendp - js));
                     err++;
-- 
cgit v1.1-32-gdbae