Skip to content

Commit c8b32f4

Browse files
author
gefeili
committed
Merge branch 'main' into 1906-readtime
# Conflicts: # pg/src/main/java/org/bouncycastle/bcpg/StreamUtil.java
2 parents 7e05e3e + 8902307 commit c8b32f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg/src/main/java/org/bouncycastle/bcpg/StreamUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static void writeTime(BCPGOutputStream pOut, long time)
117117
static long readTime(BCPGInputStream in)
118118
throws IOException
119119
{
120-
return (((long) in.read() << 24 | in.read() << 16 | in.read() << 8 | in.read()) & 0xFFFFFFFFL) * 1000L;
120+
return ((long)read4OctetLength(in) & 0xFFFFFFFFL) * 1000L;
121121
}
122122

123123
static void write2OctetLength(OutputStream pOut, int len)

0 commit comments

Comments
 (0)