Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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