authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2017-08-31 17:56:06-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2017-08-31 17:56:06-07:00
log848504117f17a5fa8ead8c168e0e430e22be6e43
treea6154a7bbc5cbf6eb8945dc84ebfe689c7a4f41a
parent180fe8d506d9253532f593bab4605f752eff0ffc

Revert "fix return types of min amd max"

This reverts commit 180fe8d506d9253532f593bab4605f752eff0ffc.

1 files changed, 2 insertions(+), 2 deletions(-)

std/math/index.zig+2-2
......@@ -180,7 +180,7 @@ pub const Cmp = enum {
180180 Greater,
181181};
182182
183pub fn min(x: var, y: var) -> @typeOf(if (x < y) x else y) {
183pub fn min(x: var, y: var) -> @typeOf(x + y) {
184184 if (x < y) x else y
185185}
186186
......@@ -188,7 +188,7 @@ test "math.min" {
188188 assert(min(i32(-1), i32(2)) == -1);
189189}
190190
191pub fn max(x: var, y: var) -> @typeOf(if (x > y) x else y) {
191pub fn max(x: var, y: var) -> @typeOf(x + y) {
192192 if (x > y) x else y
193193}
194194