Commit 5851044
committed
Fix _%_ FunctionDecl: only add cross-type overload, not standard ones
Adding standard overloads (int/int, uint/uint) collides with built-ins
(modulo_int64, modulo_uint64). Adding only the cross-type (int/uint)
overload succeeds because it's a novel parameter combination. The result
is uint64 so "this % 2u == 0u" works with the built-in _==_(uint64, uint64).1 parent b3bf39a commit 5851044
1 file changed
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1780 | 1780 | | |
1781 | 1781 | | |
1782 | 1782 | | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | 1790 | | |
1805 | 1791 | | |
1806 | 1792 | | |
| |||
0 commit comments