diff src/ls-mat5.cc @ 6295:0fcce0872e02

[project @ 2007-02-10 02:10:21 by jwe]
author jwe
date Sat, 10 Feb 2007 02:10:21 +0000
parents 3588fc904484
children 5d02dfacfc9e
line wrap: on
line diff
--- a/src/ls-mat5.cc
+++ b/src/ls-mat5.cc
@@ -74,8 +74,7 @@
 #include <zlib.h>
 #endif
 
-#define PAD(l) (((l)<=4)?4:(((l)+7)/8)*8)
-#define TAGLENGTH(l) ((l)<=4?4:8)
+#define PAD(l) (((l) > 0 && (l) <= 4) ? 4 : (((l)+7)/8)*8)
 
 // FIXME -- the following enum values should be the same as the
 // mxClassID values in mexproto.h, but it seems they have also changed