about summary refs log tree commit diff stats
path: root/apps/tile/int-stack.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-25 09:47:55 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-25 09:47:55 -0700
commitd061cbff87aa313e6204781b0569caa2d54c3d11 (patch)
treea898165a5a2f98b03dbb5fe8dad7726a88bb7a18 /apps/tile/int-stack.mu
parent5914ed31a9d5fb097f249cb681bc109eb3ed2a92 (diff)
downloadmu-d061cbff87aa313e6204781b0569caa2d54c3d11.tar.gz
6855
Get rid of cutesy justify thresholds. They didn't actually save me any
trouble, and they won't generalize to other literals besides ints.
Diffstat (limited to 'apps/tile/int-stack.mu')
-rw-r--r--apps/tile/int-stack.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tile/int-stack.mu b/apps/tile/int-stack.mu
index 65b9107b..8e58f456 100644
--- a/apps/tile/int-stack.mu
+++ b/apps/tile/int-stack.mu
@@ -68,7 +68,7 @@ fn int-stack-length _self: (addr int-stack) -> result/eax: int {
   result <- copy *top-addr
 }
 
-fn max-stack-justify-threshold _self: (addr int-stack) -> result/eax: int {
+fn int-stack-max-width _self: (addr int-stack) -> result/eax: int {
   var self/esi: (addr int-stack) <- copy _self
   var data-ah/edi: (addr handle array int) <- get self, data
   var _data/eax: (addr array int) <- lookup *data-ah
@@ -80,11 +80,11 @@ fn max-stack-justify-threshold _self: (addr int-stack) -> result/eax: int {
     compare i, *top-addr
     break-if->=
     var g/edx: (addr int) <- index data, i
-    var threshold/ecx: int <- right-justify-threshold-decimal *g
-    compare threshold, result
+    var w/ecx: int <- int-width-decimal *g
+    compare w, result
     {
       break-if-<=
-      result <- copy threshold
+      result <- copy w
     }
     i <- increment
     loop