summaryrefslogtreecommitdiffhomepage
path: root/src/thread
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-04-08 01:58:03 -0400
committermidipix <writeonce@midipix.org>2019-04-08 01:58:03 -0400
commitcfeeec98503557c1ec71fa1dedae8c4b90dd8b42 (patch)
tree087b4fcf0305c09b8d2222c638475015c76c3858 /src/thread
parent9912f3a537d96b41ae2b76d90215971e39f24a7e (diff)
downloadmmglue-cfeeec98503557c1ec71fa1dedae8c4b90dd8b42.tar.bz2
mmglue-cfeeec98503557c1ec71fa1dedae8c4b90dd8b42.tar.xz
__clone(): flag check: add missing parenthesis.
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/nt32/clone.c2
-rw-r--r--src/thread/nt64/clone.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/nt32/clone.c b/src/thread/nt32/clone.c
index 12d7e5e..9c5a8a2 100644
--- a/src/thread/nt32/clone.c
+++ b/src/thread/nt32/clone.c
@@ -59,7 +59,7 @@ int __clone(
pfn_clone = (__sys_clone *)(__syscall_vtbl[SYS_clone]);
- if (flags == CLONE_VM|CLONE_VFORK|SIGCHLD) {
+ if (flags == (CLONE_VM|CLONE_VFORK|SIGCHLD)) {
regs.sbase = 0;
regs.slimit = 0;
regs.sbottom = 0;
diff --git a/src/thread/nt64/clone.c b/src/thread/nt64/clone.c
index 6f11d17..002d709 100644
--- a/src/thread/nt64/clone.c
+++ b/src/thread/nt64/clone.c
@@ -63,7 +63,7 @@ hidden int __clone(
pfn_clone = (__sys_clone *)(__syscall_vtbl[SYS_clone]);
- if (flags == CLONE_VM|CLONE_VFORK|SIGCHLD) {
+ if (flags == (CLONE_VM|CLONE_VFORK|SIGCHLD)) {
regs.sbase = 0;
regs.slimit = 0;
regs.sbottom = 0;