Skip to content

Commit 532199e

Browse files
fangzhengxerial
andauthored
Fix bug in ImmutableTimestampValueImpl. (#786)
* Fix bug in ImmutableTimestampValueImpl. * Fix code style --------- Co-authored-by: Taro L. Saito <[email protected]>
1 parent cc2ce77 commit 532199e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack-core/src/main/java/org/msgpack/value/impl/ImmutableTimestampValueImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public byte[] getData()
9393
long sec = getEpochSecond();
9494
int nsec = getNano();
9595
if (sec >>> 34 == 0) {
96-
long data64 = (nsec << 34) | sec;
96+
long data64 = ((long) nsec << 34) | sec;
9797
if ((data64 & 0xffffffff00000000L) == 0L) {
9898
bytes = new byte[4];
9999
MessageBuffer.wrap(bytes).putInt(0, (int) sec);

0 commit comments

Comments
 (0)