You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Point makepoint(int a, int b) {
Point p;
p.x = a;
p.y = b;
return p;
}
void main() {
Point p = makepoint(2, 6);
printf("(%d, %d)\n", p.x, p.y);
All this works as expected.
printf("(%d, ", makepoint(2, 6).x);
This is very like C++ but it should work as well but:
File "/home/tsf/sandbox/ppci/ppci/ir.py", line 978, in init
raise TypeError("Binop type mismatch {} != {}".format(a.ty, ty))
TypeError: Binop type mismatch blob<8:4> != ptr
In codegenerator.py, gen_field_select() generates the code for the struct base address before adding the field offset.
But it does not expect an object instead of a pointer to an object.
The text was updated successfully, but these errors were encountered:
All this works as expected.
This is very like C++ but it should work as well but:
In codegenerator.py, gen_field_select() generates the code for the struct base address before adding the field offset.
But it does not expect an object instead of a pointer to an object.
The text was updated successfully, but these errors were encountered: