This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/compiler/cpp/src/generate/t_rb_generator.cc b/compiler/cpp/src/generate/t_rb_generator.cc | |
index c9db29a..f4029d0 100644 | |
--- a/compiler/cpp/src/generate/t_rb_generator.cc | |
+++ b/compiler/cpp/src/generate/t_rb_generator.cc | |
@@ -319,7 +319,11 @@ void t_rb_generator::generate_enum(t_enum* tenum) { | |
for(c_iter = constants.begin(); c_iter != constants.end(); ++c_iter) { | |
// Populate the hash | |
int value = (*c_iter)->get_value(); | |
- first ? first = false : f_types_ << ", "; | |
+ if (first) { |