]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix critical for silent cast
authorSimon Werbeck <simon.werbeck@gmail.com>
Wed, 13 Aug 2014 01:08:36 +0000 (03:08 +0200)
committerLuca Bruno <luca.bruno@immobiliare.it>
Tue, 26 Aug 2014 09:56:31 +0000 (11:56 +0200)
Fixes bug 696110

codegen/valaccodebasemodule.vala

index ca282a1619eaaadd9751447bb1961514c05b0eaf..c96c038a99fdeafba54b802160de33568f1b7ba8 100644 (file)
@@ -5091,6 +5091,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        }
                } else {
                        if (expr.is_silent_cast) {
+                               set_cvalue (expr, new CCodeInvalidExpression ());
                                expr.error = true;
                                Report.error (expr.source_reference, "Operation not supported for this type");
                                return;