Commit Graph

4 Commits

Author SHA1 Message Date
Michael Karcher 0ec6293221 mfbt:tests: Handle targets with less strict alignment in TestPair
Previously, the tests assumed that the alignment of int and long equals
their size. This commit fixes the tests for targets like m68k that have
sizeof(int) == 4 and alignof(int) == 2. A static helper function sizemax
was introduced as the offset of the second element in Pair<int,long>
might be either determined by its alignment requirement or the size of
the preceding int element and we use the helper function to pick the
larger of the two values.
2018-07-25 07:46:14 +08:00
trav90 e3750943c9 Add assignment operators to mozilla::Pair 2018-07-25 06:20:58 +08:00
trav90 a541823568 Add an equivalent of std::make_pair for mozilla::Pair
BMO 1142366
2018-07-25 06:20:54 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00