summaryrefslogtreecommitdiffstats
path: root/src/H5Fprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Fprivate.h')
-rw-r--r--src/H5Fprivate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Fprivate.h b/src/H5Fprivate.h
index 3f5de41..b1c591c 100644
--- a/src/H5Fprivate.h
+++ b/src/H5Fprivate.h
@@ -138,13 +138,13 @@ typedef struct H5F_t H5F_t;
(p) += 8; \
}
-#define NBYTEENCODE(d, s, n) { HDmemcpy(d,s,n); p+=n }
+#define NBYTEENCODE(d, s, n) do { HDmemcpy(d,s,n); d += n; } while (0)
/*
* Note: the NBYTEDECODE macro is backwards from the memcpy() routine, in
* the spirit of the other DECODE macros.
*/
-#define NBYTEDECODE(s, d, n) { HDmemcpy(d,s,n); p+=n }
+#define NBYTEDECODE(s, d, n) do { HDmemcpy(d,s,n); d += n; } while (0)
/* Address-related macros */
#define H5F_addr_overflow(X,Z) (HADDR_UNDEF==(X) || \