Fix signedness error

This commit is contained in:
Charles Milette 2019-07-25 17:09:52 -04:00
parent 07e1d7870a
commit 0d671a2e19
No known key found for this signature in database
GPG Key ID: 1A5AE81377AD973A

View File

@ -100,7 +100,7 @@ struct DiyFp {
} }
DiyFp Normalize() const { DiyFp Normalize() const {
uint32_t s = RAPIDJSON_CLZLL(f); int s = static_cast<int>(RAPIDJSON_CLZLL(f));
return DiyFp(f << s, e - s); return DiyFp(f << s, e - s);
} }