fix constant wrapper
authorMatthias Braun <matze@braunis.de>
Sat, 2 Jul 2005 02:21:22 +0000 (02:21 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 2 Jul 2005 02:21:22 +0000 (02:21 +0000)
SVN-Revision: 2675

tools/miniswig/create_wrapper.cpp

index c39f8d4..8b0305b 100644 (file)
@@ -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";