aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-05-29 02:44:02 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-05-29 02:44:02 +0000
commite7d00f5825ed22c50cafa59cebfba73f223311e8 (patch)
treec0b9d7787becf06f5acdc36903e3ce616ba4f960 /src
parentef2cb63e9e15a749c7ae0b0a3ce3dd6fd6cd9029 (diff)
downloadsqlite-e7d00f5825ed22c50cafa59cebfba73f223311e8.tar.gz
sqlite-e7d00f5825ed22c50cafa59cebfba73f223311e8.zip
Avoid arithmetic on void pointers. (CVS 1489)
FossilOrigin-Name: 3d68703e2e4e793012cb3c13a6744e915475e006
Diffstat (limited to 'src')
-rw-r--r--src/utf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utf.c b/src/utf.c
index ff51eed51..72944c812 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.13 2004/05/28 16:00:22 drh Exp $
+** $Id: utf.c,v 1.14 2004/05/29 02:44:02 danielk1977 Exp $
**
** Notes on UTF-8:
**
@@ -376,8 +376,8 @@ int sqlite3utf8CharLen(const char *pZ, int nByte){
*/
int sqlite3utf16ByteLen(const void *pZ, int nChar){
if( nChar<0 ){
- const unsigned char *pC1 = pZ;
- const unsigned char *pC2 = pZ+1;
+ const unsigned char *pC1 = (unsigned char *)pZ;
+ const unsigned char *pC2 = (unsigned char *)pZ+1;
while( *pC1 || *pC2 ){
pC1 += 2;
pC2 += 2;