From 0525cb807e8388190be7a0b1dbd709c451c5bd5d Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 20 Oct 2003 17:33:05 +0000 Subject: [PATCH] 2003-10-20 Mike Kestner * generator/Parameters.cs : add a cast to the call_string for Length params other than int. svn path=/trunk/gtk-sharp/; revision=19202 --- ChangeLog | 5 +++++ generator/Parameters.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8eaf1b79f..ecc2870ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-20 Mike Kestner + + * generator/Parameters.cs : add a cast to the call_string for Length + params other than int. + 2003-10-18 Mike Kestner * gtk/Gtk.metadata : add move-node rules for Paint methods. diff --git a/generator/Parameters.cs b/generator/Parameters.cs index f135a3618..b7579f6b3 100644 --- a/generator/Parameters.cs +++ b/generator/Parameters.cs @@ -256,7 +256,7 @@ namespace GtkSharp.Generation { string name = this [i].Name; if (i > 0 && this [i - 1].IsString && this [i].IsLength) { - call_string += ", " + this [i - 1].Name + ".Length"; + call_string += ", " + (cs_type != "int" ? "(" + cs_type + ") " : "") + this [i - 1].Name + ".Length"; import_sig += ", " + m_type + " " + name; continue; }