about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 300d0fc7..a4981f58 100755
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -497,7 +497,7 @@ int of_convert(int a)
 {
     if(!a || a==-1) return a;
     int b=0;
-    #define GO(A) if((a&X86_##A)==X86_##A) {a&=~X86_##A; b|=A;}
+    #define GO(A) if((a&(X86_##A))==(X86_##A)) {a&=~(X86_##A); b|=(A);}
     SUPER();
     #undef GO
     if(a) {
@@ -511,7 +511,7 @@ int of_unconvert(int a)
 {
     if(!a || a==-1) return a;
     int b=0;
-    #define GO(A) if((a&A)==A) {a&=~A; b|=X86_##A;}
+    #define GO(A) if((a&(A))==(A)) {a&=~(A); b|=(X86_##A);}
     SUPER();
     #undef GO
     if(a) {