Fix: timestamp type could overflow before conversion (#892)

This commit is contained in:
Hanno Cornelius
2022-03-18 12:04:11 +02:00
committed by GitHub
parent e1146b2df8
commit 994ac49472
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ suite "Message Store":
t1 = getNanosecondTime(epochTime())
t2 = getNanosecondTime(epochTime())
t3 = getNanosecondTime(high(float64))
t3 = high(int64)
var msgs = @[
WakuMessage(payload: @[byte 1, 2, 3], contentTopic: topic, version: uint32(0), timestamp: t1),
WakuMessage(payload: @[byte 1, 2, 3, 4], contentTopic: topic, version: uint32(1), timestamp: t2),