diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:53:58 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:53:58 +0900 |
commit | 208fe39375bf7ab3d7ab1b8fcb7f603855f57def (patch) | |
tree | 0f11ec88c17127db27b26acf77bb22ae6e26bcc8 /src | |
parent | cebb51f8567f63fdb42d20bd5c3b052cd56c6aaa (diff) |
Fix FD/handle conversion bug
On systems where int size != pointer size the coversion
resulted in compile-time error.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
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_) { |