]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Correctly handle cast-expression of real struct to nullable struct
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 10 May 2020 06:46:33 +0000 (08:46 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 10 May 2020 10:56:12 +0000 (12:56 +0200)
commitc49d45a4e52d5a572ca6e10ecdd5c475eb768720
tree03af128b4631acc0b19f57b78b724a42c432a65e
parent2d6328ddcf26a624f83549c0bf789198b7a2e990
codegen: Correctly handle cast-expression of real struct to nullable struct

Don't generate invalid c-code leading to "cannot convert to a pointer type"

Fix https://gitlab.gnome.org/GNOME/vala/issues/991
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/structs/struct-boxed-cast.vala [new file with mode: 0644]