diff options
author | danielk1977 <danielk1977@noemail.net> | 2004-05-29 02:44:02 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2004-05-29 02:44:02 +0000 |
commit | e7d00f5825ed22c50cafa59cebfba73f223311e8 (patch) | |
tree | c0b9d7787becf06f5acdc36903e3ce616ba4f960 /src | |
parent | ef2cb63e9e15a749c7ae0b0a3ce3dd6fd6cd9029 (diff) | |
download | sqlite-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |