diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-24 15:42:05 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-24 15:42:05 +0200 |
| commit | 2bb956bb065d82024bd18c4a5c2fdda59f54e89f (patch) | |
| tree | 03bb71d21a1a362b8967e51a433e43710eb57743 | |
| parent | 7fa2a273d0d006d1b498c54477ac9a305b29d957 (diff) | |
| download | box64-2bb956bb065d82024bd18c4a5c2fdda59f54e89f.tar.gz box64-2bb956bb065d82024bd18c4a5c2fdda59f54e89f.zip | |
Improved ofconvert function a bit
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 4 |
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) { |