about summary refs log tree commit diff stats
path: root/cpp/070display.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/070display.cc')
-rw-r--r--cpp/070display.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/070display.cc b/cpp/070display.cc
index 6a94cec9..b2bb8d06 100644
--- a/cpp/070display.cc
+++ b/cpp/070display.cc
@@ -3,7 +3,7 @@
 //:: Display management
 
 :(before "End Globals")
-size_t Display_row = 0, Display_column = 0;
+index_t Display_row = 0, Display_column = 0;
 
 :(before "End Primitive Recipe Declarations")
 SWITCH_TO_DISPLAY,
@@ -44,7 +44,7 @@ Recipe_number["clear-line-on-display"] = CLEAR_LINE_ON_DISPLAY;
 :(before "End Primitive Recipe Implementations")
 case CLEAR_LINE_ON_DISPLAY: {
   size_t width = tb_width();
-  for (size_t x = Display_column; x < width; ++x) {
+  for (index_t x = Display_column; x < width; ++x) {
     tb_change_cell(x, Display_row, ' ', TB_WHITE, TB_DEFAULT);
   }
   tb_set_cursor(Display_column, Display_row);