Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast 64->32 bit narrowing when building for 32bit system.
Some compilers just print a warning for this, while others throw an error and fail the compilation.
- Loading branch information
859a5bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always like to avoid conditional compilation when possible....
If you write it as follows:
then I think it should work on both 64-bit and 32-bit systems.
859a5bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that x86_64 may be too specific. Does this handle other 64 bit setups such as 64 bit android ?
859a5bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I didn't realize that select_timeout would be instantiated when the compiler processed the static casts.