diff options
Diffstat (limited to 'libpdbg/operations.h')
-rw-r--r-- | libpdbg/operations.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpdbg/operations.h b/libpdbg/operations.h index dc5042a..85fc117 100644 --- a/libpdbg/operations.h +++ b/libpdbg/operations.h @@ -22,9 +22,10 @@ #define PRINT_ERR PR_DEBUG("failed\n"); #define CHECK_ERR(x) do { \ - if (x) { \ + typeof(x) __x = (x); \ + if (__x) { \ PRINT_ERR; \ - return x; \ + return __x; \ } \ } while(0) |