We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3a5a4c commit 6c278c6Copy full SHA for 6c278c6
src/ExtensionCodec.ts
@@ -11,7 +11,7 @@ export type TimeSpec = {
11
nsec: number;
12
};
13
14
-const TIMESTAMP32_MAX_SEC = 0x100000000; // 32-bit signed int
+const TIMESTAMP32_MAX_SEC = 0x100000000; // 32-bit unsigned int
15
const TIMESTAMP64_MAX_SEC = 0x400000000; // 34-bit unsigned int
16
17
export function encodeTimestampFromTimeSpec({ sec, nsec }: TimeSpec): Uint8Array {
0 commit comments