From 456aaea05fa8b99d21f9290ba6d34242a8fd8d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20N=C3=A4slund?= Date: Thu, 20 Sep 2018 10:34:04 +0200 Subject: [PATCH] Rewrote LDouble::in in the same style as LLong and ULLong --- source/system/Numbers.ooc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/system/Numbers.ooc b/source/system/Numbers.ooc index fc28a7df9..6894849be 100644 --- a/source/system/Numbers.ooc +++ b/source/system/Numbers.ooc @@ -100,9 +100,7 @@ LDouble: cover from long double { result } in: func (range: Range) -> Bool { - (min, max) := (range min as This, range max as This) - (aboveMin, belowMax) := (this >= min, this < max) - aboveMin && belowMax + this >= (range min as This) && this < (range max as This) } }