shithub: sl

Download patch

ref: f1fc5b03170740ae6eeb30a4d87276fb501fc296
parent: ed6d23fde034ef52f179822318dd96ba6039a9e4
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Apr 6 21:07:17 EDT 2025

stop treating runes as numbers

--- a/src/cvalues.c
+++ b/src/cvalues.c
@@ -1045,11 +1045,6 @@
 		*pp = pi;
 		*pt = ubnumtype(a);
 		return true;
-	}else if(isrune(a)){
-		*pi = torune(a);
-		*pp = pi;
-		*pt = T_U32;
-		return true;
 	}else if(iscprim(a)){
 		cp = ptr(a);
 		*pp = cp_data(cp);
--- a/test/unittest.sl
+++ b/test/unittest.sl
@@ -166,12 +166,6 @@
 (assert (and (>= 2 1 1) (<= 1 1 2)))
 (assert (not (and (>= 2 1 2) (<= 2 1 2))))
 
-; comparing numbers and runes
-(assert (< 9 #\newline))
-(assert (not (< 10 #\newline)))
-(assert (= 10 #\newline))
-(assert (> 11 #\newline))
-
 ; -0.0 etc.
 (assert (not (equal? 0.0 0)))
 (assert (equal? 0.0 0.0))
--