For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > November 2004 > cvs: Zend(PHP_4_3) / zend_operators.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: Zend(PHP_4_3) / zend_operators.c
Derick Rethans

2004-11-29, 3:58 pm

derick Mon Nov 29 04:15:28 2004 EDT

Modified files: (Branch: PHP_4_3)
/Zend zend_operators.c
Log:
- Revert Joe's work around a bug in GCC patch as it breaks too many things.


http://cvs.php.net/diff.php/Zend/ze...=1.129.2.9&ty=u
Index: Zend/zend_operators.c
diff -u Zend/zend_operators.c:1.129.2.8 Zend/zend_operators.c:1.129.2.9
--- Zend/zend_operators.c:1.129.2.8 Wed Nov 3 18:15:05 2004
+++ Zend/zend_operators.c Mon Nov 29 04:15:28 2004
@@ -183,15 +183,7 @@
}


-#define DVAL_TO_LVAL(d, l) do { \
- if ((d) >= LONG_MAX) { \
- l = LONG_MAX; \
- } else if ((d) < LONG_MIN) { \
- l = LONG_MIN; \
- } else { \
- l = (d); \
- } \
-} while (0)
+#define DVAL_TO_LVAL(d, l) (l) = (d) > LONG_MAX ? (unsigned long) (d) : (long) (d)


#define zendi_convert_to_long(op, holder, result) \
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com