[vala] Fix crash introduced by previous patch.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix crash introduced by previous patch.
- Date: Fri, 10 May 2013 19:53:12 +0000 (UTC)
commit 3e813d0c82f6098967460aef7a22e30703c6a3db
Author: Luca Bruno <lucabru src gnome org>
Date: Fri May 10 21:53:33 2013 +0200
Fix crash introduced by previous patch.
codegen/valaccodemethodcallmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 6bc87cb..b30422a 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -714,7 +714,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
}
}
- if (get_ccode_type (m) != null && get_ccode_type (m) != get_ccode_name (m.return_type)) {
+ if (m != null && get_ccode_type (m) != null && get_ccode_type (m) != get_ccode_name
(m.return_type)) {
// Bug 699956: Implement cast for method return type if [CCode type=] annotation is
specified
ccall_expr = new CCodeCastExpression (ccall_expr, get_ccode_name (m.return_type));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]