]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Move implicit GValue cast for comparison to BinaryExpression 7d771a0c07d63cb7605cbdc28dd8df50719731f8
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 25 Mar 2019 11:46:15 +0000 (12:46 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 25 Mar 2019 12:57:13 +0000 (13:57 +0100)
commit7d771a0c07d63cb7605cbdc28dd8df50719731f8
treeace6b2288faa24b4fcc7b4596acb93ede097692c
parent2d9c89eff5bcded0ae9c9807a33d10b97b18aaaa
codegen: Move implicit GValue cast for comparison to BinaryExpression

Handle "==" and "!=" only as it was done before.

This generates correct c-code for boxed simple-types and will perform
value-based comparisons.

See https://bugzilla.gnome.org/show_bug.cgi?id=585063
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/structs/gvalue-implicit-comparison.vala [new file with mode: 0644]
vala/valabinaryexpression.vala