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

allow Read32FromFile to return signed value #3

Merged
merged 1 commit into from
Jan 31, 2015

Conversation

avysk
Copy link
Contributor

@avysk avysk commented Jan 30, 2015

Read32FromFile() returns either -1 or 0; the result of the call is then compared (< 0) with zero to detect possible error. But as the type of the function was unsigned (uint32_t), the error is never detected.

philburk added a commit that referenced this pull request Jan 31, 2015
allow Read32FromFile to return signed value
@philburk philburk merged commit f53726f into philburk:master Jan 31, 2015
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.

None yet

2 participants