mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 23:21:38 +00:00
Handle +/-inf in protos (#7256)
* Handle +/-inf in protos * Check for digit in 4th pos
This commit is contained in:
@@ -67,4 +67,8 @@ message ProtoMessage {
|
||||
OtherMessage t = 18;
|
||||
}
|
||||
optional ProtoEnum outer_enum = 33;
|
||||
// Tests that `inf` and `+/-inf` can be parsed in proto options.
|
||||
optional float u = 34 [default = inf];
|
||||
optional float v = 35 [default = +inf];
|
||||
optional float w = 36 [default = -inf];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user