diff --git a/libcpuid/libcpuid_util.c b/libcpuid/libcpuid_util.c index dc5f244..ea6b1b8 100644 --- a/libcpuid/libcpuid_util.c +++ b/libcpuid/libcpuid_util.c @@ -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; }