From fb1d50dfc542424dd2c2b44739178ed8d96cc514 Mon Sep 17 00:00:00 2001 From: hkb Date: Mon, 5 Jul 2021 16:11:55 +0800 Subject: [PATCH] THRIFT-5439 Lua Generator does not support const i64 Client: lua Patch: Kaibin Huang This closes #2413 --- compiler/cpp/src/thrift/generate/t_lua_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cpp/src/thrift/generate/t_lua_generator.cc b/compiler/cpp/src/thrift/generate/t_lua_generator.cc index 410c8832e..de3b89011 100644 --- a/compiler/cpp/src/thrift/generate/t_lua_generator.cc +++ b/compiler/cpp/src/thrift/generate/t_lua_generator.cc @@ -259,7 +259,7 @@ string t_lua_generator::render_const_value(t_type* type, t_const_value* value) { out << value->get_integer(); break; case t_base_type::TYPE_I64: - out << "lualongnumber.new('" << value->get_string() << "')"; + out << "lualongnumber.new('" << value->get_integer() << "')"; break; case t_base_type::TYPE_DOUBLE: if (value->get_type() == t_const_value::CV_INTEGER) {