Skip to content

Commit

Permalink
default in switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
RevenantX committed Jul 28, 2015
1 parent 01249c1 commit 0b761ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/idl_gen_general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ static std::string GenDefaultValue(const LanguageParameters &lang, const Value &
return "default(Offset<" + value.type.struct_def->name + ">)";
case BASE_TYPE_VECTOR:
return "default(VectorOffset)";
default:
break;
}
}

Expand Down

0 comments on commit 0b761ec

Please sign in to comment.