[vala/staging] ccode: Adapt to string.char_count() binding change



commit 3d27fd1f738a9ebaf3f4f88d59502087e6854515
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Oct 30 07:52:36 2018 +0100

    ccode: Adapt to string.char_count() binding change

 ccode/valaccodefunction.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala
index 688c6d1eb..e85ea0def 100644
--- a/ccode/valaccodefunction.vala
+++ b/ccode/valaccodefunction.vala
@@ -125,7 +125,7 @@ public class Vala.CCodeFunction : CCodeNode {
                }
                writer.write_string (name);
                writer.write_string (" (");
-               int param_pos_begin = (is_declaration ? return_type.char_count () + 1 : 0 ) + name.char_count 
() + 2;
+               int param_pos_begin = (int) ((is_declaration ? return_type.char_count () + 1L : 0L ) + 
name.char_count () + 2L);
 
                bool has_args = (CCodeModifiers.PRINTF in modifiers || CCodeModifiers.SCANF in modifiers);
                int i = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]