Content-Length: 261627 | pFad | http://github.com/msgpack/msgpack-java/commit/532199e454ec912082cecb08d3cf08cf0a277d74

21 Fix bug in ImmutableTimestampValueImpl. (#786) · msgpack/msgpack-java@532199e · GitHub
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 <leo@xerial.org>
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/msgpack/msgpack-java/commit/532199e454ec912082cecb08d3cf08cf0a277d74

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy