diff options
Diffstat (limited to 'third_party/protobuf/3.2.0/js/binary/writer.js')
-rw-r--r-- | third_party/protobuf/3.2.0/js/binary/writer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/protobuf/3.2.0/js/binary/writer.js b/third_party/protobuf/3.2.0/js/binary/writer.js index c3009dbb54..672e94bd29 100644 --- a/third_party/protobuf/3.2.0/js/binary/writer.js +++ b/third_party/protobuf/3.2.0/js/binary/writer.js @@ -596,8 +596,8 @@ jspb.BinaryWriter.prototype.writeSint64 = function(field, value) { */ jspb.BinaryWriter.prototype.writeSint64String = function(field, value) { if (value == null) return; - goog.asserts.assert((value >= -jspb.BinaryConstants.TWO_TO_63) && - (value < jspb.BinaryConstants.TWO_TO_63)); + goog.asserts.assert((+value >= -jspb.BinaryConstants.TWO_TO_63) && + (+value < jspb.BinaryConstants.TWO_TO_63)); this.writeZigzagVarint64String_(field, value); }; |