From a2176b722d48fe6c9e41519d9cb1918c64f0c7f2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 8 Apr 2019 08:28:43 +0200 Subject: [PATCH] fix --- client/tinycbor/cborinternal_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tinycbor/cborinternal_p.h b/client/tinycbor/cborinternal_p.h index 2464ddeea..d971fa478 100644 --- a/client/tinycbor/cborinternal_p.h +++ b/client/tinycbor/cborinternal_p.h @@ -84,8 +84,8 @@ static inline double decode_half(unsigned short half) { int exp1 = (half >> 10) & 0x1f; int mant = half & 0x3ff; double val; - if (exp1 == 0) val = ldexp1(mant, -24); - else if (exp1 != 31) val = ldexp1(mant + 1024, exp1 - 25); + if (exp1 == 0) val = ldexp(mant, -24); + else if (exp1 != 31) val = ldexp(mant + 1024, exp1 - 25); else val = mant == 0 ? INFINITY : NAN; return (half & 0x8000) ? -val : val; }