From 967653e8968674a29a92dd6ef90e20ca243ae79c Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Sat, 22 Dec 2012 09:29:04 -0800 Subject: [PATCH] Bug 822804: Mark variables destIdx & destPos in GfxDriverInfo.h as unsigned, to fix build warning for unsigned/signed comparison. r=Bas --- widget/xpwidgets/GfxDriverInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/xpwidgets/GfxDriverInfo.h b/widget/xpwidgets/GfxDriverInfo.h index 719f70dd2b0b..f4974d963ab7 100644 --- a/widget/xpwidgets/GfxDriverInfo.h +++ b/widget/xpwidgets/GfxDriverInfo.h @@ -149,8 +149,8 @@ inline bool SplitDriverVersion(const char *aSource, char *aAStr, char *aBStr, ch // sscanf doesn't do what we want here to we parse this manually. int len = strlen(aSource); char *dest[4] = { aAStr, aBStr, aCStr, aDStr }; - int destIdx = 0; - int destPos = 0; + unsigned destIdx = 0; + unsigned destPos = 0; for (int i = 0; i < len; i++) { if (destIdx > ArrayLength(dest)) {