Skip to content

Commit 1068072

Browse files
author
Jing He
committed
minor fix
Signed-off-by: Jing He <[email protected]>
1 parent f9c1f96 commit 1068072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Windows/sgx/libsgx_tsgxssl/tcpu_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static void update_feature_mask(unsigned long long* exx_feature_mask, unsigned i
200200
// Suppress information, whenever possible, from g_cpu_feature_indicator SDK variable
201201
for (int bit_ix = 0; bit_ix < FEATURES_BITS_NUM; bit_ix++) {
202202
if (exx_feature_mask[bit_ix] != CPU_FEATURE_UNAVAILABLE) {
203-
if (g_cpu_feature_indicator & exx_feature_mask[bit_ix] == 0) {
203+
if ((g_cpu_feature_indicator & exx_feature_mask[bit_ix]) == 0) {
204204
*p_exx_value = *p_exx_value & (~(1 << bit_ix));
205205
}
206206
else {

0 commit comments

Comments
 (0)