Author: roger
Date: Thu Sep  6 17:59:55 2012
New Revision: 1381696

URL: http://svn.apache.org/viewvc?rev=1381696&view=rev
Log:
THRIFT-1686 t_php_generator.cc uses "and" instead of "&&", and causes compiler 
errors with Visual Studio
Patch: Ben Craig

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc
URL: 
http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc?rev=1381696&r1=1381695&r2=1381696&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc Thu Sep  6 
17:59:55 2012
@@ -2274,7 +2274,7 @@ string t_php_generator::argument_list(t_
     t_type* type = (*f_iter)->get_type();
 
     //Set type name
-    if(addStructSignature and type->is_struct())
+    if(addStructSignature && type->is_struct())
     {
       string className = php_namespace(type->get_program()) + 
php_namespace_directory("Definition", false) + classify(type->get_name());
 


Reply via email to