Skip to content

Commit 464ec36

Browse files
cjihrigbmeck
authored andcommitted
deps: sqlite: fix Windows compilation
This is equivalent to the following upstream change: https://sqlite.org/src/info/6c103aee6f146869 Original commit message: Change constant expressions to pre-computed constants, because apparently MSVC on ARM requires that. [forum:/forumpost/4feb1685cced0a8e|Forum thread 4feb1685cced0a8e]. FossilOrigin-Name: 6c103aee6f146869a3e0c48694592f2e4c6b57ecdb4450f46e762c38b4e686f1 PR-URL: nodejs#52435 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent 760fc02 commit 464ec36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/sqlite/sqlite3.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -24886,8 +24886,8 @@ static const struct {
2488624886
/* 1 */ { 6, "minute", 7.7379e+12, 60.0 },
2488724887
/* 2 */ { 4, "hour", 1.2897e+11, 3600.0 },
2488824888
/* 3 */ { 3, "day", 5373485.0, 86400.0 },
24889-
/* 4 */ { 5, "month", 176546.0, 30.0*86400.0 },
24890-
/* 5 */ { 4, "year", 14713.0, 365.0*86400.0 },
24889+
/* 4 */ { 5, "month", 176546.0, 2592000.0 },
24890+
/* 5 */ { 4, "year", 14713.0, 31536000.0 },
2489124891
};
2489224892

2489324893
/*

0 commit comments

Comments
 (0)