You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2018/08/29 12:03:10 UTC
[thrift] branch master updated: THRIFT-4622: Resolve typedef'd
list-element type Client: c_glib
This is an automated email from the ASF dual-hosted git repository.
jking 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 8de3749 THRIFT-4622: Resolve typedef'd list-element type Client: c_glib
8de3749 is described below
commit 8de3749235db03c1d043c9f31dcbdc4c0fb011ea
Author: Simon South <si...@simonsouth.ca>
AuthorDate: Sat Aug 18 21:55:46 2018 -0400
THRIFT-4622: Resolve typedef'd list-element type
Client: c_glib
---
compiler/cpp/src/thrift/generate/t_c_glib_generator.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/cpp/src/thrift/generate/t_c_glib_generator.cc b/compiler/cpp/src/thrift/generate/t_c_glib_generator.cc
index b27fc60..b1e8042 100644
--- a/compiler/cpp/src/thrift/generate/t_c_glib_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_c_glib_generator.cc
@@ -579,7 +579,7 @@ string t_c_glib_generator::type_name(t_type* ttype, bool in_typedef, bool is_con
// TODO: discuss whether or not to implement TSet, THashSet or GHashSet
cname = "GHashTable";
} else if (ttype->is_list()) {
- t_type* etype = ((t_list*)ttype)->get_elem_type();
+ t_type* etype = get_true_type(((t_list*)ttype)->get_elem_type());
if (etype->is_void()) {
throw std::runtime_error("compiler error: list element type cannot be void");
}