diff options
author | mistachkin <mistachkin@noemail.net> | 2016-04-12 20:05:06 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2016-04-12 20:05:06 +0000 |
commit | 77fac879d25b6500d3bd028a8e855fc9dc789634 (patch) | |
tree | 8afdf9e232e8858a52c7f8a6e2426b0f3f80117e /src | |
parent | 02267cc2136bc3cde2ae9cc3a02f91e2dc497793 (diff) | |
download | sqlite-77fac879d25b6500d3bd028a8e855fc9dc789634.tar.gz sqlite-77fac879d25b6500d3bd028a8e855fc9dc789634.zip |
More harmless compiler warning fixes.
FossilOrigin-Name: ab69527c1608da0b668f3b49e967661dd99cc3d4
Diffstat (limited to 'src')
-rw-r--r-- | src/test_multiplex.c | 4 | ||||
-rw-r--r-- | src/test_onefile.c | 2 | ||||
-rw-r--r-- | src/test_osinst.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/test_multiplex.c b/src/test_multiplex.c index 07dcbbc1a..ba4e61b09 100644 --- a/src/test_multiplex.c +++ b/src/test_multiplex.c @@ -539,7 +539,7 @@ static int multiplexOpen( memset(pGroup, 0, sz); pMultiplexOpen->pGroup = pGroup; pGroup->bEnabled = (unsigned char)-1; - pGroup->bTruncate = sqlite3_uri_boolean(zUri, "truncate", + pGroup->bTruncate = (unsigned char)sqlite3_uri_boolean(zUri, "truncate", (flags & SQLITE_OPEN_MAIN_DB)==0); pGroup->szChunk = (int)sqlite3_uri_int64(zUri, "chunksize", SQLITE_MULTIPLEX_CHUNK_SIZE); @@ -978,7 +978,7 @@ static int multiplexFileControl(sqlite3_file *pConn, int op, void *pArg){ case MULTIPLEX_CTRL_ENABLE: if( pArg ) { int bEnabled = *(int *)pArg; - pGroup->bEnabled = bEnabled; + pGroup->bEnabled = (unsigned char)bEnabled; rc = SQLITE_OK; } break; diff --git a/src/test_onefile.c b/src/test_onefile.c index 122be700e..46c8bc9c8 100644 --- a/src/test_onefile.c +++ b/src/test_onefile.c @@ -508,7 +508,7 @@ static int fsSync(sqlite3_file *pFile, int flags){ if( p->eType==DATABASE_FILE ){ unsigned char zSize[4]; zSize[0] = (pReal->nDatabase&0xFF000000)>>24; - zSize[1] = (pReal->nDatabase&0x00FF0000)>>16; + zSize[1] = (unsigned char)((pReal->nDatabase&0x00FF0000)>>16); zSize[2] = (pReal->nDatabase&0x0000FF00)>>8; zSize[3] = (pReal->nDatabase&0x000000FF); rc = pRealFile->pMethods->xWrite(pRealFile, zSize, 4, 0); diff --git a/src/test_osinst.c b/src/test_osinst.c index 4ae23a87c..e51ce77ef 100644 --- a/src/test_osinst.c +++ b/src/test_osinst.c @@ -644,9 +644,9 @@ static void vfslog_flush(VfslogVfs *p){ static void put32bits(unsigned char *p, unsigned int v){ p[0] = v>>24; - p[1] = v>>16; - p[2] = v>>8; - p[3] = v; + p[1] = (unsigned char)(v>>16); + p[2] = (unsigned char)(v>>8); + p[3] = (unsigned char)v; } static void vfslog_call( |