mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
eliminate warning
This commit is contained in:
parent
050bb02198
commit
5fa9db52bf
@ -20,7 +20,7 @@ handle_t acquire(std::string const & name, std::size_t size) {
|
||||
if (fd == -1) {
|
||||
return nullptr;
|
||||
}
|
||||
if (::ftruncate(fd, size) != 0) {
|
||||
if (::ftruncate(fd, static_cast<off_t>(size)) != 0) {
|
||||
::close(fd);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user