changeset 23038:d8d0e600cbc4

maint: merge stable to default.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Sat, 14 Jan 2017 00:01:41 +0100
parents 28668bfd5b63 (current diff) 0412dc701e28 (diff)
children a11950e51b7f
files libinterp/corefcn/mexproto.h
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/mexproto.h	Fri Jan 13 09:16:51 2017 -0800
+++ b/libinterp/corefcn/mexproto.h	Sat Jan 14 00:01:41 2017 +0100
@@ -308,7 +308,7 @@
 #  define mxAssert(expr, msg)                                           \
   do                                                                    \
     {                                                                   \
-      if (! expr)                                                       \
+      if (! (expr))                                                     \
         {                                                               \
           if (msg != NULL && msg[0] != '\0')                            \
             mexErrMsgIdAndTxt ("Octave:MEX",                            \
@@ -325,7 +325,7 @@
 #  define mxAssertS(expr, msg)                                          \
   do                                                                    \
     {                                                                   \
-      if (! expr)                                                       \
+      if (! (expr))                                                     \
         {                                                               \
           if (msg != NULL && msg[0] != '\0')                            \
             mexErrMsgIdAndTxt ("Octave:MEX",                            \
@@ -349,4 +349,3 @@
 #endif
 
 #endif
-