Closed evanboho closed 7 years ago
This fixes https://github.com/ruby-protobuf/protobuf/issues/265
Bug: calling to_i on nil returns 0, and so will return an erroneous value if the enum is zero-indexed.
to_i
nil
This fixes https://github.com/ruby-protobuf/protobuf/issues/265
Bug: calling
to_i
onnil
returns 0, and so will return an erroneous value if the enum is zero-indexed.