* src/vm/global.h (ALIGN_2): Use logical arithmetic.
authortwisti <none@none>
Mon, 9 Jul 2007 14:37:49 +0000 (14:37 +0000)
committertwisti <none@none>
Mon, 9 Jul 2007 14:37:49 +0000 (14:37 +0000)
src/vm/global.h

index 65a722b0fed1deb8e82b5f91f96c9b143cd1edcc..57970116bc813cd89e9c774ec0822e748c8d9be9 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: global.h 8161 2007-06-28 10:30:08Z twisti $
+   $Id: global.h 8193 2007-07-09 14:37:49Z twisti $
 
 */
 
@@ -73,7 +73,7 @@ typedef union {
 
 /* alignment macros ***********************************************************/
 
-#define ALIGN_2(a)    do { if ((a) & 0x1) (a)++; } while (0)
+#define ALIGN_2(a)                      ((a) = (((a) + 1) & ~1))
 
 
 /* forward typedefs ***********************************************************/