Skip to content
Browse files

Restored PHP 5.2 compatibility.

git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@307252 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 010ca98 commit bf0df5d1edcdcbd1f02a5daf263039d09aa5e11f cataphract committed Jan 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 rararch.c
View
4 rararch.c
@@ -351,7 +351,7 @@ static int rararch_dimensions_preamble(rar_file_t *rar,
return FAILURE;
}
- *index = zend_dval_to_lval(d);
+ *index = (long) d;
}
}
else if (Z_TYPE_P(offset) == IS_DOUBLE) {
@@ -360,7 +360,7 @@ static int rararch_dimensions_preamble(rar_file_t *rar,
"Dimension index is out of integer bounds");
return FAILURE;
}
- *index = zend_dval_to_lval(Z_DVAL_P(offset));
+ *index = (long) Z_DVAL_P(offset);
}
else if (Z_TYPE_P(offset) == IS_OBJECT) {
if (Z_OBJ_HT_P(offset)->get) {

0 comments on commit bf0df5d

Please sign in to comment.
Something went wrong with that request. Please try again.