summaryrefslogtreecommitdiff
path: root/Source/Modules/guile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Modules/guile.cxx')
-rw-r--r--Source/Modules/guile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/guile.cxx b/Source/Modules/guile.cxx
index a9e51fd1b..1c135b53d 100644
--- a/Source/Modules/guile.cxx
+++ b/Source/Modules/guile.cxx
@@ -1350,7 +1350,7 @@ public:
Printv(f_header, tm, "\n", NIL);
} else {
// Create variable and assign it a value
- Printf(f_header, "static %s = %s;\n", SwigType_str(type, var_name), rvalue);
+ Printf(f_header, "static %s = (%s)(%s);\n", SwigType_str(type, var_name), SwigType_str(type, 0), rvalue);
}
{
/* Hack alert: will cleanup later -- Dave */