Differences From:
File
src/th.c
part of check-in
[0c99a1554a]
- Modify the TH1 script interperter to use native characters rather than
unsigned characters. Fix a bug in the combobox extension command of TH1.
by
drh on
2008-10-24 16:36:34.
[view]
To:
File
src/th.c
part of check-in
[cd965de682]
- Fix some compiler warnings.
by
drh on
2009-01-24 10:44:43.
[view]
@@ -1815,9 +1815,9 @@
if( pExpr->pOp==0 ){
/* A literal */
rc = thSubstWord(interp, pExpr->zValue, pExpr->nValue);
}else{
- int eArgType; /* Actual type of arguments */
+ int eArgType = 0; /* Actual type of arguments */
/* Argument values */
int iLeft;
int iRight;
@@ -1865,9 +1865,9 @@
}
}
if( rc==TH_OK && eArgType==ARG_INTEGER ){
- int iRes;
+ int iRes = 0;
switch( pExpr->pOp->eOp ) {
case OP_MULTIPLY: iRes = iLeft*iRight; break;
case OP_DIVIDE: iRes = iLeft/iRight; break;
case OP_MODULUS: iRes = iLeft%iRight; break;