mirror of
https://github.com/zlib-ng/minizip-ng
synced 2026-08-25 14:26:08 -04:00
Fixed implicit conversion loses integer precision warning.
This commit is contained in:
parent
36f61523a3
commit
5f8e2be461
1 changed files with 2 additions and 2 deletions
|
|
@ -297,9 +297,9 @@ int32_t mz_os_make_symlink(const char *path, const char *target_path)
|
|||
|
||||
int32_t mz_os_read_symlink(const char *path, char *target_path, int32_t max_target_path)
|
||||
{
|
||||
int32_t length = 0;
|
||||
size_t length = 0;
|
||||
|
||||
if ((length = readlink(path, target_path, max_target_path - 1)) < 0)
|
||||
if ((length = readlink(path, target_path, max_target_path - 1)) == (size_t)-1)
|
||||
return MZ_EXIST_ERROR;
|
||||
|
||||
target_path[length] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue