You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Implicit conversion loses integer precision: 'unsigned long long' to 'bm::word_t' (aka 'unsigned int')
As the type of bm::word_t is unsigned int (ie: 32-bits on a 32-bit platform), this function could silently truncate the result of the data. I don't actually use this code so I don't have a test-case available to prove it, but it looks like a reasonable warning.
Agreed, it is totally reasonable even in 64-bit compile.
It's a legit bug. The code is a victim of Intel unaligned access OK mode.
What is the platform you use. If you happen to be on x86, please help me to identify why
BM_UNALIGNED_ACCESS_OK was not set there. (Must be some combination of OS/compiler prevented it).
When compiling w/-Wconversion:
Error:
Implicit conversion loses integer precision: 'unsigned long long' to 'bm::word_t' (aka 'unsigned int')
As the type of
bm::word_t
isunsigned int
(ie: 32-bits on a 32-bit platform), this function could silently truncate the result of the data. I don't actually use this code so I don't have a test-case available to prove it, but it looks like a reasonable warning.The text was updated successfully, but these errors were encountered: