Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d367188

Browse files
committed
Fix messenger compile errors on gcc / clang.
1 parent 8705694 commit d367188

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

messenger/src/messenger.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ void mexFunction(int nlhs, mxArray *plhs[],
9090

9191
if (!initialized) {
9292
if (!initialize(socket_addr)) {
93-
p[0] = true;
93+
p[0] = 1;
9494
mexPrintf("Socket created at: %s\n", socket_addr);
9595
} else {
96-
p[0] = false;
96+
p[0] = 0;
9797
mexErrMsgTxt("Socket creation failed.");
9898
}
9999
} else {
@@ -137,9 +137,9 @@ void mexFunction(int nlhs, mxArray *plhs[],
137137
p = mxGetLogicals(plhs[0]);
138138

139139
if (msglen == respond(msg_out, msglen)) {
140-
p[0] = true;
140+
p[0] = 1;
141141
} else {
142-
p[0] = false;
142+
p[0] = 0;
143143
mexErrMsgTxt("Failed to send message due to ZMQ error");
144144
}
145145

0 commit comments

Comments
 (0)