mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Undefined behaviour in python .cc module? #82
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mmastrac on GitHub (Dec 26, 2015).
When compiling on OSX, I get this:
I suspect the cast of the out-of-range -1 to an enum is undefined behaviour in C++, but I'm not certain.
@anthrotype commented on GitHub (Dec 26, 2015):
cc @khaledhosny
@eustas commented on GitHub (Jan 18, 2016):
Hello, Matt.
Thank you for your report. Could you check if casting mote to int in python/brotlimodule.cc:131 fixes the problem?
Best regards,
Eugene.