1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Squash sign-comparison warnings reported in [forum:5e605a763a65c3f8 | forum post 5e605a763a65c3f8].

FossilOrigin-Name: e74fce93c518296bdb0a4273cd5fd3f785d37d27750ca456b61a3502135775f9
This commit is contained in:
stephan
2024-09-27 16:20:03 +00:00
parent c94e4a7b2f
commit c707b2eb6d
3 changed files with 12 additions and 12 deletions

View File

@ -351,7 +351,7 @@ static int substituteCost(char cPrev, char cFrom, char cTo){
** Negative values indicate an error:
** -1 One of the inputs is NULL
** -2 Non-ASCII characters on input
** -3 Unable to allocate memory
** -3 Unable to allocate memory
**
** If pnMatch is not NULL, then *pnMatch is set to the number of bytes
** of zB that matched the pattern in zA. If zA does not end with a '*',
@ -360,8 +360,8 @@ static int substituteCost(char cPrev, char cFrom, char cTo){
** of zB that was deemed to match zA.
*/
static int editdist1(const char *zA, const char *zB, int *pnMatch){
int nA, nB; /* Number of characters in zA[] and zB[] */
int xA, xB; /* Loop counters for zA[] and zB[] */
unsigned int nA, nB; /* Number of characters in zA[] and zB[] */
unsigned int xA, xB; /* Loop counters for zA[] and zB[] */
char cA = 0, cB; /* Current character of zA and zB */
char cAprev, cBprev; /* Previous character of zA and zB */
char cAnext, cBnext; /* Next character in zA and zB */
@ -3021,7 +3021,7 @@ static sqlite3_module spellfix1Module = {
*/
static int spellfix1Register(sqlite3 *db){
int rc = SQLITE_OK;
int i;
unsigned int i;
rc = sqlite3_create_function(db, "spellfix1_translit", 1,
SQLITE_UTF8|SQLITE_DETERMINISTIC, 0,
transliterateSqlFunc, 0, 0);