Skip to content

Commit

Permalink
Replace Long types with i64 / u64
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSwitz committed May 27, 2021
1 parent 45fea2d commit b700d3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/idl_gen_as.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ class AsGenerator : public BaseGenerator {
case BASE_TYPE_VECTOR: return "[]";

case BASE_TYPE_LONG:
int64_t constant = StringToInt(value.constant.c_str());
return NumToString(constant) + " as i64";
return value.constant + " as i64";
case BASE_TYPE_ULONG: {
int64_t constant = StringToInt(value.constant.c_str());
return NumToString(constant) + " as u64";
return value.constant + " as u64";
}

default: return value.constant;
Expand Down

0 comments on commit b700d3f

Please sign in to comment.