]> granicus.if.org Git - php/commitdiff
long -> int
authorAntony Dovgal <tony2001@php.net>
Sun, 6 Aug 2006 14:09:58 +0000 (14:09 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 6 Aug 2006 14:09:58 +0000 (14:09 +0000)
ext/oci8/oci8.c

index 1df805ff7f47eca70618608aed47d76d30247c23..9b64d65afc687d7e8b152a6b3e36778063845b4a 100644 (file)
@@ -1042,11 +1042,10 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char
                else if (!persistent && zend_hash_find(&EG(regular_list), hashed_details.c, hashed_details.len+1, (void **) &le) == SUCCESS) {
                        found = 1;
                        if (le->type == le_index_ptr) {
-                               int type;
-                               long link;
+                               int type, link;
                                void *ptr;
 
-                               link = (long) le->ptr;
+                               link = (int) le->ptr;
                                ptr = zend_list_find(link,&type);
                                if (ptr && (type == le_connection)) {
                                        connection = (php_oci_connection *)ptr;