mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-5439 Lua Generator does not support const i64
Client: lua Patch: Kaibin Huang This closes #2413
This commit is contained in:
parent
8bd82305cf
commit
fb1d50dfc5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user