]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Fix assignment of casted struct value to property
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 6 Jan 2021 11:19:10 +0000 (12:19 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 9 Jan 2021 19:58:09 +0000 (20:58 +0100)
commitf94695e369af6c5b6319041fb3100fcbebfc95b6
tree4af7008f40b29ee0ab982c8fd65c1bedbee4f04e
parentef4402da46e3c2b626406f06f62072d6d2c57816
codegen: Fix assignment of casted struct value to property

Usage of address-of operator requires lvalue access. Therefore use a
temporary variable to be passed to property setter.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1126
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/objects/property-real-struct-assignment.vala [new file with mode: 0644]