summaryrefslogtreecommitdiffstats
path: root/libpdbg/operations.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpdbg/operations.h')
-rw-r--r--libpdbg/operations.h5
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)
OpenPOWER on IntegriCloud