mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 575014: cast pointer-subtraction in nsTArray to produce index_type instead of (64-bit) size_t, to fix build warning on Win64. (bustage fix) rs=timeless pending-r=bsmedberg
This commit is contained in:
parent
acc8eb35f1
commit
cb6a1a06d6
@ -444,7 +444,7 @@ class nsTArray : public nsTArray_base {
|
||||
const elem_type* end = Elements() - 1, *iter = end + start + 1;
|
||||
for (; iter != end; --iter) {
|
||||
if (comp.Equals(*iter, item))
|
||||
return iter - Elements();
|
||||
return index_type(iter - Elements());
|
||||
}
|
||||
return NoIndex;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user