AdjustMaxIfNecessary adjusts `*n1` to be `max(*n1, n2)`. Return true iff `n2` was greater than `*n1`.
(n2 Count32)
| 40 | // AdjustMaxIfNecessary adjusts `*n1` to be `max(*n1, n2)`. Return |
| 41 | // true iff `n2` was greater than `*n1`. |
| 42 | func (n1 *Count32) AdjustMaxIfNecessary(n2 Count32) bool { |
| 43 | if n2 <= *n1 { |
| 44 | return false |
| 45 | } |
| 46 | |
| 47 | *n1 = n2 |
| 48 | return true |
| 49 | } |
| 50 | |
| 51 | // AdjustMaxIfPossible adjusts `*n1` to be `max(*n1, n2)`. Return true |
| 52 | // iff `n2` was greater than or equal to `*n1`. |
no outgoing calls
no test coverage detected