diff options
Diffstat (limited to 'ext/com_dotnet/com_persist.c')
-rw-r--r-- | ext/com_dotnet/com_persist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index 66e3dec640..a1c2f77661 100644 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -349,7 +349,7 @@ CPH_METHOD(GetCurFileName) res = IPersistFile_GetCurFile(helper->ipf, &olename); if (res == S_OK) { - int len; + size_t len; char *str = php_com_olestring_to_string(olename, &len, helper->codepage TSRMLS_CC); RETVAL_STRINGL(str, len); @@ -375,7 +375,7 @@ CPH_METHOD(SaveToFile) { HRESULT res; char *filename, *fullpath = NULL; - int filename_len; + size_t filename_len; zend_bool remember = TRUE; OLECHAR *olefilename = NULL; CPH_FETCH(); @@ -438,8 +438,8 @@ CPH_METHOD(LoadFromFile) { HRESULT res; char *filename, *fullpath; - int filename_len; - long flags = 0; + size_t filename_len; + zend_long flags = 0; OLECHAR *olefilename; CPH_FETCH(); @@ -506,7 +506,7 @@ CPH_METHOD(GetMaxStreamSize) php_com_throw_exception(res, NULL TSRMLS_CC); } else { /* TODO: handle 64 bit properly */ - RETURN_LONG((LONG)size.QuadPart); + RETURN_LONG((zend_long)size.QuadPart); } } /* }}} */ |