diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fd.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ namespace xs enum {retired_fd = -1}; inline void *fdtoptr (fd_t fd_) { - return (void*) (fd_ + 1); + return (void*) (((char*) 0) + fd_ + 1); } inline fd_t ptrtofd (void *ptr_) { |