iverase commented on a change in pull request #2094:
URL: https://github.com/apache/lucene-solr/pull/2094#discussion_r529540139



##########
File path: lucene/core/src/java/org/apache/lucene/store/DataOutput.java
##########
@@ -210,8 +210,14 @@ public final void writeZInt(int i) throws IOException {
    * @see DataInput#readLong()
    */
   public void writeLong(long i) throws IOException {
-    writeInt((int) (i >> 32));
-    writeInt((int) i);
+    writeByte((byte) i);
+    writeByte((byte)(i >>  8));
+    writeByte((byte)(i >> 16));
+    writeByte((byte)(i >> 24));
+    writeByte((byte)(i >> 32));
+    writeByte((byte)(i >> 40));
+    writeByte((byte)(i >> 48));
+    writeByte((byte)(i >> 56));

Review comment:
       Just to keep my sanity :) done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to