From 3b913b0cebda059c900c88a8b9f2646141015192 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 6 Oct 2022 02:05:13 -0700 Subject: [PATCH] Change all stderr to stdout --- bmi-calc/main.nasm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bmi-calc/main.nasm b/bmi-calc/main.nasm index 389952d..640aaf8 100644 --- a/bmi-calc/main.nasm +++ b/bmi-calc/main.nasm @@ -5,7 +5,6 @@ %define FD_stdin 0 %define FD_stdout 1 -%define FD_stderr 2 %define POLLIN 1 @@ -322,7 +321,7 @@ read_float_end: read_float_num_error: mov rax,SYS_write - mov rdi,FD_stderr + mov rdi,FD_stdout mov rsi,num_error_text mov rdx,num_error_length syscall @@ -332,7 +331,7 @@ read_float_num_error: read_float_size_error: mov rax,SYS_write - mov rdi,FD_stderr + mov rdi,FD_stdout mov rsi,size_error_text mov rdx,size_error_length syscall