Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type enet_uint64 and changed the methods that uses the new type. #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

juaalta
Copy link

@juaalta juaalta commented Feb 24, 2015

For dates as Mon, 09 Mar 2015 19:25:42 GMT, whose value is 1425929142 seconds, the enet_uint32 type is overflow by passing this to milliseconds.

For dates as Mon, 09 Mar 2015 19:25:42 GMT, whose value is 1425929142 seconds, the enet_uint32 type is overflow by passing this to milliseconds.
typedef unsigned char enet_uint8; /**< unsigned 8-bit type */
typedef unsigned short enet_uint16; /**< unsigned 16-bit type */
typedef unsigned int enet_uint32; /**< unsigned 32-bit type */
typedef u_int64_t enet_uint64; /**< unsigned 64-bit type */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u_int64_t isn't portable: https://stackoverflow.com/q/42979055/2038264
Should use uint64_t (and also include stdint.h)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants