aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
diff options
context:
space:
mode:
authorshaneh <shaneh@noemail.net>2010-08-18 02:28:48 +0000
committershaneh <shaneh@noemail.net>2010-08-18 02:28:48 +0000
commit1df2db7fd1a3bd465e14efa819faa28259a3162e (patch)
tree627f982c5f61b43da872d3d04f5c96ff84873577 /src/wal.c
parent89bd82ae9d80abddb27df1ede84fe5ed2245ac59 (diff)
downloadsqlite-1df2db7fd1a3bd465e14efa819faa28259a3162e.tar.gz
sqlite-1df2db7fd1a3bd465e14efa819faa28259a3162e.zip
Fix some compiler warnings in the MSVC build.
FossilOrigin-Name: 1f5662b7db5d623c8d99c45a8d97a0aa4427593f
Diffstat (limited to 'src/wal.c')
-rw-r--r--src/wal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wal.c b/src/wal.c
index 94c6925ae..22ce1fa77 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -1135,7 +1135,7 @@ static int walIndexRecover(Wal *pWal){
if( nTruncate ){
pWal->hdr.mxFrame = iFrame;
pWal->hdr.nPage = nTruncate;
- pWal->hdr.szPage = (szPage&0xff00) | (szPage>>16);
+ pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
testcase( szPage<=32768 );
testcase( szPage>=65536 );
aFrameCksum[0] = pWal->hdr.aFrameCksum[0];
@@ -2562,7 +2562,7 @@ int sqlite3WalFrames(
if( rc==SQLITE_OK ){
/* Update the private copy of the header. */
- pWal->hdr.szPage = (szPage&0xff00) | (szPage>>16);
+ pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
testcase( szPage<=32768 );
testcase( szPage>=65536 );
pWal->hdr.mxFrame = iFrame;