[PHP4BETA] CVS update: php4/ext/standard
| From: | sas | Date: | Sun, 16 May 1999 11:55:34 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/standard | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-881@lists.php.net to get a copy of this message | ||
Date: Sunday May 16, 1999 @ 7:55
Author: sas
Update of /repository/php4/ext/standard
In directory php:/tmp/cvs-serv19019/ext/standard
Modified Files:
global.h
Log Message:
kill another 64-bit issue.
this affected at least md5 which produced wrong values on 64-bit platforms
Index: php4/ext/standard/global.h
diff -u php4/ext/standard/global.h:1.1 php4/ext/standard/global.h:1.2
--- php4/ext/standard/global.h:1.1 Fri Apr 16 20:37:06 1999
+++ php4/ext/standard/global.h Sun May 16 07:55:34 1999
@@ -45,7 +45,11 @@
typedef unsigned short int UINT2;
/* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
+#if SIZEOF_INT == 4
+typedef unsigned int UINT4;
+#elif SIZEOF_LONG == 4
+typedef unsigned long UINT4;
+#endif
/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
--
PHP 4 Beta