diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-13 00:22:31 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | ad54d804fef1e1eb646d8ea4bd7ce65363e94fa8 (patch) | |
tree | 41c2d7d9979c98bdd508929a01949ba2f02c679b /src/compiler.c | |
parent | 2d2c31cc18aa9af2cdf26fa462edf7a164d45328 (diff) |
Fix bugs
Fix hash map bug on rorder (invalid size).
Fix string to int/float conversion in tokenizer.
Add more ssa functions
Diffstat (limited to 'src/compiler.c')
-rw-r--r-- | src/compiler.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |