Skip to content

Commit a5ce241

Browse files
cjihrigRafaelGSS
authored andcommittedAug 30, 2024
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: #54433 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 3caf29e commit a5ce241

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)
Please sign in to comment.