From 28307f87a403c3d69a5294f42ab931e3094a8e57 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 2 Jul 2005 02:21:22 +0000 Subject: [PATCH] fix constant wrapper SVN-Revision: 2675 --- tools/miniswig/create_wrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/miniswig/create_wrapper.cpp b/tools/miniswig/create_wrapper.cpp index c39f8d435..8b0305bc6 100644 --- a/tools/miniswig/create_wrapper.cpp +++ b/tools/miniswig/create_wrapper.cpp @@ -181,9 +181,9 @@ WrapperCreator::create_register_constant_code(Field* field) return; out << ind << "sq_pushstring(v, \"" << field->name << "\", -1);\n"; if(field->type->atomic_type == &BasicType::INT) { - out << ind << "sq_pushinteger(v, " << field->const_int_value << ")\n"; + out << ind << "sq_pushinteger(v, " << field->const_int_value << ");\n"; } else if(field->type->atomic_type == &BasicType::FLOAT) { - out << ind << "sq_pushfloat(v, " << field->const_float_value << ")\n"; + out << ind << "sq_pushfloat(v, " << field->const_float_value << ");\n"; } else if(field->type->atomic_type == StringType::instance()) { out << ind << "sq_pushstring(v, \"" << field->const_string_value << "\", -1);\n"; -- 2.11.0