]> gitweb.factorcode.org Git - factor.git/commitdiff
system-info.macosx: fix system-code-name for Version 11/12.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 12 Feb 2022 23:38:12 +0000 (15:38 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 12 Feb 2022 23:38:12 +0000 (15:38 -0800)
basis/system-info/macosx/macosx.factor

index 6dfd4cfabb8161cb319888c60d9d77f3d9ad1386..61fb79ee8bf9dd510fe38fb36a11f3bfa48115a0 100644 (file)
@@ -44,7 +44,8 @@ CONSTANT: system-code-names H{
 }
 
 : system-code-name ( -- str/f )
-    system-version-major system-version-minor 2array
+    system-version-major
+    dup 10 = [ system-version-minor ] [ 0 ] if 2array
     system-code-names at ;
 
 PRIVATE>