CVS update: php3/functions
| From: | sas | Date: | Fri, 02 Jul 1999 19:15:03 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8009@lists.php.net to get a copy of this message | ||
Date: Friday July 2, 1999 @ 15:15
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv11972/functions
Modified Files:
number.c
Log Message:
never ever cast pointers to int
Index: php3/functions/number.c
diff -u php3/functions/number.c:1.19 php3/functions/number.c:1.20
--- php3/functions/number.c:1.19 Fri Jul 2 12:41:51 1999
+++ php3/functions/number.c Fri Jul 2 15:15:03 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: number.c,v 1.19 1999/07/02 16:41:51 markonen Exp $
+/* $Id: number.c,v 1.20 1999/07/02 19:15:03 sas Exp $
Implements arbitrary precision numbers. */
/* This file is part of GNU bc.
@@ -755,7 +755,7 @@
pval->n_sign = ( n1->n_sign == n2->n_sign ? PLUS : MINUS );
n1end = (char *) (n1->n_value + len1 - 1);
n2end = (char *) (n2->n_value + len2 - 1);
- pvptr = (char *) (((int) pval->n_value) + total_digits - toss - 1);
+ pvptr = (char *) ((pval->n_value) + total_digits - toss - 1);
sum = 0;
/* Here are the loops... */