diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-13 05:30:01 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-13 05:30:01 +0100 |
| commit | f6cb7f3e7382a19a6d6d9990c243ffb8a666182d (patch) | |
| tree | dbf43f976f66a39fd87ffa38d59194b425efaa68 /src/zsets.c | |
| parent | Make zabs, zneg and zswap inline (diff) | |
| download | libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.gz libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.bz2 libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.xz | |
Optimisations
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 d4bedc0..24ca082 100644 --- a/src/zsets.c +++ b/src/zsets.c @@ -13,12 +13,12 @@ zsets(z_t a, const char *str) str += neg || (*str == '+'); - if (!*str) { + if (EXPECT(!*str, 0)) { errno = EINVAL; return -1; } for (str_end = str; *str_end; str_end++) { - if (!isdigit(*str_end)) { + if (EXPECT(!isdigit(*str_end), 0)) { errno = EINVAL; return -1; } |
