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.
Looks good to me. :shipit:
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.