aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <>2021-01-13 19:28:17 +0000
committerdrh <>2021-01-13 19:28:17 +0000
commitaf7b76534b3680d712fadf5d5a038c75d4b99a90 (patch)
tree7f60496318a6492d053db74df21347266e962fdb /src/main.c
parentd193057ad147fe038d0f85c68cd914fa9d91c40c (diff)
downloadsqlite-af7b76534b3680d712fadf5d5a038c75d4b99a90.tar.gz
sqlite-af7b76534b3680d712fadf5d5a038c75d4b99a90.zip
Expand the number of optimization-disable bits from 16 to 32. Use one of
the new bits to disable the min/max optimization, so that we can more easily verify that we get the same answer both with and within that optimization. FossilOrigin-Name: fd0c9a123b58b7b134ed67f26dbb4196b61e56227f078422cc7e9a3497054c2d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bbf81e778..0f3989d9d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4080,7 +4080,7 @@ int sqlite3_test_control(int op, ...){
*/
case SQLITE_TESTCTRL_OPTIMIZATIONS: {
sqlite3 *db = va_arg(ap, sqlite3*);
- db->dbOptFlags = (u16)(va_arg(ap, int) & 0xffff);
+ db->dbOptFlags = va_arg(ap, u32);
break;
}