diff options
author | Adam Cozzette <acozzette@gmail.com> | 2017-05-01 10:58:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 10:58:38 -0700 |
commit | 2f4489a3e504e0a4aaffee69b551c6acc9e08374 (patch) | |
tree | 4cd6e883d0d92f39ebbaa0f6b4bf0f321a165df0 /js/binary/writer.js | |
parent | 286f0598422a70639e587b5329bd3037f5ee76b0 (diff) | |
parent | 9053033a5076f82cf18b823c31f352e95e5bfd8d (diff) | |
download | protobuf-2f4489a3e504e0a4aaffee69b551c6acc9e08374.tar.gz protobuf-2f4489a3e504e0a4aaffee69b551c6acc9e08374.tar.bz2 protobuf-2f4489a3e504e0a4aaffee69b551c6acc9e08374.zip |
Merge pull request #3024 from acozzette/merge-3.3-to-master
Merged 3.3.x branch to master
Diffstat (limited to 'js/binary/writer.js')
-rw-r--r-- | js/binary/writer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/binary/writer.js b/js/binary/writer.js index c3009dbb..672e94bd 100644 --- a/js/binary/writer.js +++ b/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); }; |