Skip to content

Commit

Permalink
Fix bug in ImmutableTimestampValueImpl. (#786)
Browse files Browse the repository at this point in the history
* Fix bug in ImmutableTimestampValueImpl.

* Fix code style

---------

Co-authored-by: Taro L. Saito <[email protected]>
  • Loading branch information
fangzheng and xerial authored Jan 9, 2024
1 parent cc2ce77 commit 532199e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public byte[] getData()
long sec = getEpochSecond();
int nsec = getNano();
if (sec >>> 34 == 0) {
long data64 = (nsec << 34) | sec;
long data64 = ((long) nsec << 34) | sec;
if ((data64 & 0xffffffff00000000L) == 0L) {
bytes = new byte[4];
MessageBuffer.wrap(bytes).putInt(0, (int) sec);
Expand Down

0 comments on commit 532199e

Please sign in to comment.