Commit 92cf8535 authored by Jeno Attila Balasko's avatar Jeno Attila Balasko Committed by Gerrit Code Review
Browse files

Merge "fix JSON encode variant as_number"

parents b6e6370b c8fc55e8
......@@ -621,7 +621,7 @@ public final class EnumeratedGenerator {
source.append("\t\t\tString tmp_str = null;\n");
source.append("\t\t\tif (p_td.json.isAs_number()) {\n");
source.append("\t\t\t\ttmp_str = \"\"+enum_value.ordinal();\n");
source.append("\t\t\t\ttmp_str = \"\"+enum_value.enum_num;\n");
source.append("\t\t\t} else {\n");
source.append("\t\t\t\tboolean text_found = false;\n");
source.append("\t\t\t\tfor (int i = 0; i < p_td.json.getNof_enum_texts(); ++i) {\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment