We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2ce77 commit 532199eCopy full SHA for 532199e
msgpack-core/src/main/java/org/msgpack/value/impl/ImmutableTimestampValueImpl.java
@@ -93,7 +93,7 @@ public byte[] getData()
93
long sec = getEpochSecond();
94
int nsec = getNano();
95
if (sec >>> 34 == 0) {
96
- long data64 = (nsec << 34) | sec;
+ long data64 = ((long) nsec << 34) | sec;
97
if ((data64 & 0xffffffff00000000L) == 0L) {
98
bytes = new byte[4];
99
MessageBuffer.wrap(bytes).putInt(0, (int) sec);
0 commit comments