THRIFT-5439 Lua Generator does not support const i64

Client: lua
Patch: Kaibin Huang

This closes #2413
This commit is contained in:
hkb 2021-07-05 16:11:55 +08:00 committed by Jens Geyer
parent 8bd82305cf
commit fb1d50dfc5

View File

@ -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) {