diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-04-27 17:26:41 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-04-27 17:26:44 +0200 |
| commit | 5e29d29416b568f380a2ab753e3e77e96af4b094 (patch) | |
| tree | 7e89a8d4f064c36c9dd5ec34bf963b6e60d0b4f4 /src/zsets.c | |
| parent | Add option UNSAFE which disables all internal error checks (diff) | |
| download | libzahl-5e29d29416b568f380a2ab753e3e77e96af4b094.tar.gz libzahl-5e29d29416b568f380a2ab753e3e77e96af4b094.tar.bz2 libzahl-5e29d29416b568f380a2ab753e3e77e96af4b094.tar.xz | |
Error-check implies unlikely branching
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsets.c')
| -rw-r--r-- | src/zsets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zsets.c b/src/zsets.c index 1701c6b..b5f9e04 100644 --- a/src/zsets.c +++ b/src/zsets.c @@ -17,12 +17,12 @@ zsets(z_t a, const char *str) str += neg || (*str == '+'); - if (check(unlikely(!*str))) { + if (check(!*str)) { errno = EINVAL; return -1; } for (str_end = str; *str_end; str_end++) { - if (check(unlikely(!isdigit(*str_end)))) { + if (check(!isdigit(*str_end))) { errno = EINVAL; return -1; } |
