PeachCompiler
PeachCompiler copied to clipboard
Bug in the codegenerator in funciton: bool codegen_response_acknowledged(struct response* res)
Hello Daniel, I wanted to point out, that in the codegen_response_acknowledged function, I found a BUG; If we're checking the flags we should type type:
bool codegen_response_acknowledged(struct response* res)
{
return res && res->flags & RESPONSE_FLAG_ACKNOWLEDGED;
}
(the double && should be & in the flags) instead of:
bool codegen_response_acknowledged(struct response* res)
{
return res && res->flags && RESPONSE_FLAG_ACKNOWLEDGED;
}
thank you
Thank you for bringing this to my attention you are correct this should be a bitwise AND not a logical AND
Hello, Thanks for reaching out, once theres enough issue reports I will go through them all and create a lecture addressing any issues.
Thanks Dan