Skip to content

Commit

Permalink
fix(core): Explicit cast to avoid compiler warning (#4203)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltronix committed Feb 26, 2021
1 parent 81f8519 commit 0c53fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ua_types_encoding_binary.c
Expand Up @@ -319,7 +319,7 @@ static long double
unpack754(uint64_t i, unsigned bits, unsigned expbits) {
unsigned significandbits = bits - expbits - 1;
long double result = (long double)(i&(uint64_t)((1LL<<significandbits)-1));
result /= (1LL<<significandbits);
result /= (long double)(1LL<<significandbits);
result += 1.0f;
unsigned bias = (unsigned)(1<<(expbits-1)) - 1;
long long shift = (long long)((i>>significandbits) & (uint64_t)((1LL<<expbits)-1)) - bias;
Expand Down

0 comments on commit 0c53fd7

Please sign in to comment.