commit | f0af9275edbfacd6fce5a042a9ca758e4050bf10 | [log] [tgz] |
---|---|---|
author | Emil Lindqvist <emil@lindq.gr> | Wed Nov 10 15:26:19 2021 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Nov 15 08:53:51 2021 -0500 |
tree | 04ba1a8b05ea7b99039aaf178c8bb5d27c5a5681 | |
parent | 9ed986ae64c7679587faa8ef3608009bab8534e8 [diff] |
logging: typecast to stop signed-unsigned comparison If source_id is -1, which is a valid value, it will be converted to unsigned since it's compared with an unsigned which means it will be huge and asserts will trigger. To avoid this, we typecast the unsigned part to signed. Resolves #40115 Signed-off-by: Emil Lindqvist <emil@lindq.gr>