-
Notifications
You must be signed in to change notification settings - Fork 82
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
Rename UINT32_MAX as it collides with definition in /usr/include/stdi… #711
Conversation
modules/EvseV2G/v2g_server.cpp
Outdated
@@ -163,7 +163,7 @@ static int v2g_incoming_v2gtp(struct v2g_connection* conn) { | |||
return -1; | |||
} | |||
|
|||
if (conn->payload_len >= UINT32_MAX - V2GTP_HEADER_LENGTH) { | |||
if (conn->payload_len >= _UINT32_MAX - V2GTP_HEADER_LENGTH) { |
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.
Good catch! We could also use UINT32_MAX from stdint instead of adding a extra define
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.
true, changed to the system one
Signed-off-by: Cornelius Claussen <[email protected]>
|
3a82b69
to
a2c4203
Compare
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.
👍
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.
PR should probably be renamed before merging :D
Closed in favour of #715 |
…nt.h
UINT32_MAX is already defined in a system header
Describe your changes
Issue ticket number and link
Checklist before requesting a review