diff options
Diffstat (limited to 'ext/com_dotnet/com_persist.c')
-rw-r--r-- | ext/com_dotnet/com_persist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index 89c100b0fa..9be79995a3 100644 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -118,13 +118,13 @@ static HRESULT STDMETHODCALLTYPE stm_read(IStream *This, void *pv, ULONG cb, ULO static HRESULT STDMETHODCALLTYPE stm_write(IStream *This, void const *pv, ULONG cb, ULONG *pcbWritten) { - ULONG nwrote; + ssize_t nwrote; FETCH_STM(); - nwrote = (ULONG)php_stream_write(stm->stream, pv, cb); + nwrote = php_stream_write(stm->stream, pv, cb); if (pcbWritten) { - *pcbWritten = nwrote > 0 ? nwrote : 0; + *pcbWritten = nwrote > 0 ? (ULONG)nwrote : 0; } if (nwrote > 0) { return S_OK; |