You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2013/03/24 04:28:54 UTC

git commit: Thrift-1823:Missing parenthesis breaks "IS_..." macro in generated code Client: c_glib Patch: Simon South

Updated Branches:
  refs/heads/master a87cc5e77 -> 3c434ab87


Thrift-1823:Missing parenthesis breaks "IS_..." macro in generated code
Client: c_glib
Patch: Simon South

Fixes missing paren in the c_glib compiler


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/3c434ab8
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/3c434ab8
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/3c434ab8

Branch: refs/heads/master
Commit: 3c434ab87dcb44352e71b80cd5a9ef7e24d77427
Parents: a87cc5e
Author: Jake Farrell <jf...@apache.org>
Authored: Sat Mar 23 23:27:43 2013 -0400
Committer: Jake Farrell <jf...@apache.org>
Committed: Sat Mar 23 23:27:43 2013 -0400

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_c_glib_generator.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/3c434ab8/compiler/cpp/src/generate/t_c_glib_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_c_glib_generator.cc b/compiler/cpp/src/generate/t_c_glib_generator.cc
index 0d7fa9b..1ad882f 100644
--- a/compiler/cpp/src/generate/t_c_glib_generator.cc
+++ b/compiler/cpp/src/generate/t_c_glib_generator.cc
@@ -1089,7 +1089,7 @@ void t_c_glib_generator::generate_service_client(t_service *tservice) {
         this->nspace_uc << "TYPE_" << service_name_uc << "_IF, " <<
         this->nspace << service_name_ << "If))" << endl <<
     "#define " << this->nspace_uc << "IS_" << service_name_uc << "_IF(obj) " <<
-        "(G_TYPE_CHECK_INSTANCE_TYPE ((obj, " <<
+        "(G_TYPE_CHECK_INSTANCE_TYPE ((obj), " <<
         this->nspace_uc << "TYPE_" << service_name_uc << "_IF))" << endl <<
     "#define " << this->nspace_uc << service_name_uc <<
         "_IF_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), " <<