From 3f4b03c30741cfe36c258febf89599b1516d7127 Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Tue, 12 Mar 2024 13:08:54 +0000 Subject: [PATCH] Project: fixed some errors found by clang --- gui_internals.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui_internals.c b/gui_internals.c index fdfe8c5..7484aff 100644 --- a/gui_internals.c +++ b/gui_internals.c @@ -35,18 +35,18 @@ int update_internals(WINDOW *win,struct simdata_t *simdata){ break; default: graph_height=1; - graph_height=41; + graph_width=41; break; } int starty,startx,boxwidth; starty=height/2-graph_height/2; startx=width/2-graph_width/2; + int fetch_arrow_enter_y; + int decode_arrow_exit_y; + int exec_arrow_y; switch(simdata->cpu_structure){ case CPU_STRUCTURE_SIMPLE_PIPELINED: - int fetch_arrow_enter_y; - int decode_arrow_exit_y; - int exec_arrow_y; boxwidth=50; /* FETCH BOX */