From ad54d804fef1e1eb646d8ea4bd7ce65363e94fa8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 13 Mar 2019 00:22:31 +0100 Subject: Fix bugs Fix hash map bug on rorder (invalid size). Fix string to int/float conversion in tokenizer. Add more ssa functions --- src/compiler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/compiler.c') diff --git a/src/compiler.c b/src/compiler.c index c50ffac..08d0225 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -27,12 +27,12 @@ int amal_compiler_init(amal_compiler *self) { if(result != 0) { self->usable_thread_count = amal_get_usable_thread_count(); if(self->usable_thread_count == 0) { - amal_log_info("Unable to get the number of threads available on the system, using 1 thread."); - amal_log_info("You can override the number of threads using by setting the environment variable THREADS"); + amal_log_warning("Unable to get the number of threads available on the system, using 1 thread."); + amal_log_warning("You can override the number of threads using by setting the environment variable THREADS"); self->usable_thread_count = 1; } - } else if(self->usable_thread_count == 0) { - amal_log_info("Environment variable THREADS contains invalid number for threads. THREADS has to be at least 1."); + } else if(self->usable_thread_count <= 0) { + amal_log_error("Environment variable THREADS contains invalid number for threads. THREADS has to be at least 1."); return AMAL_COMPILER_ERR; } -- cgit v1.2.3