mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 822804: Mark variables destIdx & destPos in GfxDriverInfo.h as unsigned, to fix build warning for unsigned/signed comparison. r=Bas
This commit is contained in:
parent
6c1155ac31
commit
967653e896
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user