Skip to content

Commit

Permalink
Fix bug in ImmutableTimestampValueImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
fangzheng committed Dec 30, 2023
1 parent 87cac71 commit cc16577
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 cc16577

Please sign in to comment.