aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux.lux')
-rw-r--r--stdlib/source/lux.lux10
1 files changed, 9 insertions, 1 deletions
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux
index 916b77797..1fb0afe19 100644
--- a/stdlib/source/lux.lux
+++ b/stdlib/source/lux.lux
@@ -2228,7 +2228,7 @@
subjectH (high-bits subject)]
(if ("lux int <" subjectH testH)
#1
- (if ("lux i64 =" testH subjectH)
+ (if ("lux i64 =" subjectH testH)
("lux int <"
(low-bits subject)
(low-bits test))
@@ -6206,3 +6206,11 @@
[no yes]
[off on]
)
+
+(def: #export nat-to-frac
+ (-> Nat Frac)
+ (|>> ..int ..int-to-frac))
+
+(def: #export frac-to-nat
+ (-> Frac Nat)
+ (|>> ..frac-to-int ..nat))