[vala/wip/682_array_methods_refactor: 5/18] Fix cast one more time.
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/682_array_methods_refactor: 5/18] Fix cast one more time.
- Date: Mon, 12 Sep 2022 07:26:22 +0000 (UTC)
commit 7dd4ea18d4a73bf379f490aec1807ce37eb76a1a
Author: Vladyslav Stovmanenko <flaviusglamfenix gmail com>
Date: Thu May 5 09:55:19 2022 +0000
Fix cast one more time.
codegen/valaccodearraymodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 4c74edbaa..3463df12e 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -484,7 +484,7 @@ public class Vala.CCodeArrayModule : CCodeMethodCallModule {
iter_expr = new CCodeUnaryExpression(CCodeUnaryOperator.POSTFIX_INCREMENT, iterator_var);
ccode.open_for(init_expr, cond_expr, iter_expr);
- accessed_element = new CCodeElementAccess(array, new
CCodeBinaryExpression(CCodeBinaryOperator.MUL, iterator_var, element_size));
+ accessed_element = new CCodeElementAccess(void_array, iterator_var);
free_call = new CCodeFunctionCall(free_func);
free_call.add_argument(accessed_element);
ccode.add_expression(free_call);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]