1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Fix issue #51: Undefined behavior.

This commit is contained in:
Veselin Georgiev 2016-07-31 17:48:49 +03:00
parent e0505af4f6
commit 50530f7618

View file

@ -38,7 +38,7 @@ void match_features(const struct feature_map_t* matchtable, int count, uint32_t
{
int i;
for (i = 0; i < count; i++)
if (reg & (1 << matchtable[i].bit))
if (reg & (1u << matchtable[i].bit))
data->flags[matchtable[i].feature] = 1;
}