aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expr.c4
-rw-r--r--src/sqliteInt.h8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/expr.c b/src/expr.c
index aa70bdd9c..a20e1541c 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
-** $Id: expr.c,v 1.271 2007/01/04 01:20:29 drh Exp $
+** $Id: expr.c,v 1.272 2007/02/01 01:40:44 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1046,7 +1046,7 @@ static int lookupName(
n = sizeof(Bitmask)*8-1;
}
assert( pMatch->iCursor==pExpr->iTable );
- pMatch->colUsed |= 1<<n;
+ pMatch->colUsed |= ((Bitmask)1)<<n;
}
lookupname_end:
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index a6c944f01..bd1430024 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
-** @(#) $Id: sqliteInt.h,v 1.533 2007/01/19 01:06:02 drh Exp $
+** @(#) $Id: sqliteInt.h,v 1.534 2007/02/01 01:40:44 drh Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
@@ -1078,8 +1078,12 @@ struct IdList {
/*
** The bitmask datatype defined below is used for various optimizations.
+**
+** Changing this from a 64-bit to a 32-bit type limits the number of
+** tables in a join to 32 instead of 64. But it also reduces the size
+** of the library by 738 bytes on ix86.
*/
-typedef unsigned int Bitmask;
+typedef u64 Bitmask;
/*
** The following structure describes the FROM clause of a SELECT statement.