Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,10 @@ int codegen_set_flag_for_operator(const char *op)
{
flag |= EXPRESSION_LOGICAL_AND;
}
else if (S_EQ(op, "||"))
{
flag |= EXPRESSION_LOGICAL_OR;
}
else if (S_EQ(op, "<<"))
{
flag |= EXPRESSION_IS_BITSHIFT_LEFT;
Expand Down
2 changes: 1 addition & 1 deletion helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ void datatype_decrement_pointer(struct datatype* dtype)
long arithmetic(struct compile_process* compiler, long left_operand, long right_operand, const char* op, bool* success)
{
*success = true;
int result = 0;
long result = 0;
if (S_EQ(op, "*"))
{
result = left_operand * right_operand;
Expand Down