Skip to content

Commit 6eb9a90

Browse files
amabluea-maurice
authored andcommitted
Fixed an issue on 32 bit architectures where variants containing int64s would get truncated to int32s before being sent up to the server.
Also added unit tests for VariantToId to catch this issue. PiperOrigin-RevId: 249746328
1 parent 281c5d5 commit 6eb9a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/util_ios.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ id VariantToId(const Variant& variant) {
197197
return [NSNull null];
198198
}
199199
case Variant::kTypeInt64: {
200-
return [NSNumber numberWithLong:variant.int64_value()];
200+
return [NSNumber numberWithLongLong:variant.int64_value()];
201201
}
202202
case Variant::kTypeDouble: {
203203
return [NSNumber numberWithDouble:variant.double_value()];

0 commit comments

Comments
 (0)