aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrent Nelson <trent.nelson@pivosgroup.com>2014-08-04 15:53:07 +0800
committerTrent Nelson <trent.nelson@pivosgroup.com>2014-08-07 17:56:40 +0800
commitc5c10af07d0d81060d7fe227eb442a63df5ddadd (patch)
tree27a95eed07ecd156689ed187d5a665680f21030a
parentea26d4112774bff7ea90f5e537cb763a410a89a5 (diff)
Squelch signed/unsigned comparison warning.
-rw-r--r--xbmc/dbwrappers/mysqldataset.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xbmc/dbwrappers/mysqldataset.cpp b/xbmc/dbwrappers/mysqldataset.cpp
index 1bc60b44f0..9efb6f1c52 100644
--- a/xbmc/dbwrappers/mysqldataset.cpp
+++ b/xbmc/dbwrappers/mysqldataset.cpp
@@ -741,6 +741,7 @@ void MysqlDatabase::mysqlVXPrintf(
etByte flag_rtz; /* True if trailing zeros should be removed */
etByte flag_exp; /* True to force display of the exponent */
int nsd; /* Number of significant digits returned */
+ size_t idx2;
length = 0;
bufpt = 0;
@@ -824,9 +825,9 @@ void MysqlDatabase::mysqlVXPrintf(
/* Fetch the info entry for the field */
infop = &fmtinfo[0];
xtype = etINVALID;
- for(idx=0; idx<ARRAY_SIZE(fmtinfo); idx++){
- if( c==fmtinfo[idx].fmttype ){
- infop = &fmtinfo[idx];
+ for(idx2=0; idx2<ARRAY_SIZE(fmtinfo); idx2++){
+ if( c==fmtinfo[idx2].fmttype ){
+ infop = &fmtinfo[idx2];
if( useExtended || (infop->flags & FLAG_INTERN)==0 ){
xtype = infop->type;
}else{