This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new fb1d50d THRIFT-5439 Lua Generator does not support const i64 Client:
lua Patch: Kaibin Huang
fb1d50d is described below
commit fb1d50dfc542424dd2c2b44739178ed8d96cc514
Author: hkb <[email protected]>
AuthorDate: Mon Jul 5 16:11:55 2021 +0800
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 410c883..de3b890 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) {