aboutsummaryrefslogtreecommitdiff
path: root/src/utf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-10-04 15:23:21 +0000
committerdrh <drh@noemail.net>2006-10-04 15:23:21 +0000
commita39f4c5c8bf1066e66c24f236bf1295e30594c4d (patch)
tree3de14401fc1cf97326a27557bdd5817c0575da59 /src/utf.c
parentd9910fe529cdeb94b8d5381ea6b2fe205ced0574 (diff)
downloadsqlite-a39f4c5c8bf1066e66c24f236bf1295e30594c4d.tar.gz
sqlite-a39f4c5c8bf1066e66c24f236bf1295e30594c4d.zip
Fix UTF conversions for -O2 on gcc 4.1.1. Ticket #2008. (CVS 3464)
FossilOrigin-Name: 86a08bb7c5da42fbeb5a026287d67912a2ffb7f1
Diffstat (limited to 'src/utf.c')
-rw-r--r--src/utf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utf.c b/src/utf.c
index de4ae9fcc..55a089688 100644
--- a/src/utf.c
+++ b/src/utf.c
@@ -12,7 +12,7 @@
** This file contains routines used to translate between UTF-8,
** UTF-16, UTF-16BE, and UTF-16LE.
**
-** $Id: utf.c,v 1.40 2006/07/26 14:57:30 drh Exp $
+** $Id: utf.c,v 1.41 2006/10/04 15:23:22 drh Exp $
**
** Notes on UTF-8:
**
@@ -245,7 +245,7 @@ int sqlite3VdbeMemTranslate(Mem *pMem, u8 desiredEnc){
unsigned char *zIn; /* Input iterator */
unsigned char *zTerm; /* End of input */
unsigned char *z; /* Output iterator */
- int c;
+ unsigned int c;
assert( pMem->flags&MEM_Str );
assert( pMem->enc!=desiredEnc );
@@ -475,7 +475,7 @@ char *sqlite3utf16to8(const void *z, int nByte){
** in pZ (or up until the first pair of 0x00 bytes, whichever comes first).
*/
int sqlite3utf16ByteLen(const void *zIn, int nChar){
- int c = 1;
+ unsigned int c = 1;
char const *z = zIn;
int n = 0;
if( SQLITE_UTF16NATIVE==SQLITE_UTF16BE ){
@@ -560,7 +560,7 @@ void sqlite3utfSelfTest(){
unsigned char zBuf[20];
unsigned char *z;
int n;
- int c;
+ unsigned int c;
for(i=0; i<0x00110000; i++){
z = zBuf;