Skip to content

Instantly share code, notes, and snippets.

@tony2001
Created March 14, 2016 10:29
Show Gist options
  • Save tony2001/4cbd6b93caeb676e9e07 to your computer and use it in GitHub Desktop.
Save tony2001/4cbd6b93caeb676e9e07 to your computer and use it in GitHub Desktop.
diff --git a/excel.c b/excel.c
index bb4274c..a059884 100644
--- a/excel.c
+++ b/excel.c
@@ -1123,7 +1123,7 @@ EXCEL_METHOD(Book, __construct)
BookHandle book;
zval *object = getThis();
char *name = NULL, *key;
- int name_len = 0, key_len = 0;
+ size_t name_len = 0, key_len = 0;
zend_bool new_excel = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ssb", &name, &name_len, &key, &key_len, &new_excel) == FAILURE) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment