]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add cast to shut up warnings
authorAlan T. DeKok <aland@freeradius.org>
Sat, 20 Nov 2021 17:38:41 +0000 (12:38 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 20 Nov 2021 17:38:41 +0000 (12:38 -0500)
src/lib/util/value.c

index 8a64c0b286780ccf1412da939633be05271fb604..a9ee79f6812928ac9a09ccb51b7d259987cdcb37 100644 (file)
@@ -3020,7 +3020,7 @@ static inline int fr_value_box_cast_to_float(UNUSED TALLOC_CTX *ctx, fr_value_bo
        switch (src->type) {
        case FR_TYPE_FLOAT32:
                if (dst_type == FR_TYPE_FLOAT64) {
-                       num = src->vb_float32;
+                       num = (double) src->vb_float32;
                        goto good_cast;
                }