From 099a92733113b683be425b3400f744394ae2897d Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Tue, 12 Oct 2021 11:27:27 +0300 Subject: [PATCH] * fix for the WASI datetime to epoch conversion --- rtl/wasi/dos.pp | 2 +- rtl/wasi/sysutils.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/wasi/dos.pp b/rtl/wasi/dos.pp index cd687a0c91..d3035c3d72 100644 --- a/rtl/wasi/dos.pp +++ b/rtl/wasi/dos.pp @@ -184,7 +184,7 @@ const days_in_month: array [boolean, 1..12] of Byte = ((31,28,31,30,31,30,31,31,30,31,30,31), (31,29,31,30,31,30,31,31,30,31,30,31)); - days_before_month: array [boolean, 1..12] of Byte = + days_before_month: array [boolean, 1..12] of Word = ((0, 0+31, 0+31+28, diff --git a/rtl/wasi/sysutils.pp b/rtl/wasi/sysutils.pp index ed1d4d968a..7e4a0003ff 100644 --- a/rtl/wasi/sysutils.pp +++ b/rtl/wasi/sysutils.pp @@ -57,7 +57,7 @@ const days_in_month: array [boolean, 1..12] of Byte = ((31,28,31,30,31,30,31,31,30,31,30,31), (31,29,31,30,31,30,31,31,30,31,30,31)); - days_before_month: array [boolean, 1..12] of Byte = + days_before_month: array [boolean, 1..12] of Word = ((0, 0+31, 0+31+28,