diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-22 17:25:28 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-22 17:26:01 +0200 |
| commit | a1e2c8870ebfdc1c2d9fa25327bc3dad5bd68c91 (patch) | |
| tree | 1ba6ec4f9b3f51ef407c2903af2ad7815f8b69ca /ext/com_dotnet | |
| parent | 7a1540fa2872a67080f2161faff226c1effebf76 (diff) | |
| parent | d59aac58b3e7da7ad01a194fe9840d89725ea229 (diff) | |
| download | php-git-a1e2c8870ebfdc1c2d9fa25327bc3dad5bd68c91.tar.gz | |
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/com_dotnet')
| -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 e78503be3c..97810ec8cc 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; |
