diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-04 23:50:00 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-04 23:50:00 +0100 |
| commit | 76d0af5599554d11f104d582cdac8fbaa8569fcc (patch) | |
| tree | 0ed9889a86d52ebd208382f2fd49dad0570d1f8c /src/zpowu.c | |
| parent | Clean up, fix a few bugs, and add a test (diff) | |
| download | libzahl-76d0af5599554d11f104d582cdac8fbaa8569fcc.tar.gz libzahl-76d0af5599554d11f104d582cdac8fbaa8569fcc.tar.bz2 libzahl-76d0af5599554d11f104d582cdac8fbaa8569fcc.tar.xz | |
Clean up, add zerror and zperror, fix bugs and add more tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zpowu.c')
| -rw-r--r-- | src/zpowu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zpowu.c b/src/zpowu.c index d83a7ac..f8e5897 100644 --- a/src/zpowu.c +++ b/src/zpowu.c @@ -8,10 +8,8 @@ void zpowu(z_t a, z_t b, unsigned long long int c) { if (!c) { - if (zzero(b)) { - errno = EDOM; /* Indeterminate form: 0:th power of 0 */ - FAILURE_JUMP(); - } + if (zzero(b)) + FAILURE(EDOM); /* Indeterminate form: 0:th power of 0 */ zsetu(a, 1); return; } else if (zzero(b)) { |
