[vala/wip/issue/160: 1/2] codegen: "_first_array" parameter for params-array is variadic too
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/160: 1/2] codegen: "_first_array" parameter for params-array is variadic too
- Date: Tue, 2 Mar 2021 16:56:37 +0000 (UTC)
commit 252efaa6c9c48fb383c35458d271ca34475476e7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 2 17:55:25 2021 +0100
codegen: "_first_array" parameter for params-array is variadic too
Not following this resulted in mismatching signature assumptions between
caller and callee if the callable throws an error.
codegen/valaccodemethodmodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index ec18f786c..4366a0e8e 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -913,7 +913,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
}
cparam = new CCodeParameter ("_first_%s".printf (get_ccode_name (param)),
ctypename);
- cparam_map.set (get_param_pos (get_ccode_pos (param), false), cparam);
+ cparam_map.set (get_param_pos (get_ccode_pos (param) - 0.1, true), cparam);
va_list_name = "_va_list_%s".printf (get_ccode_name (param));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]