Skip to content

Commit e2bda44

Browse files
author
Chad Trabant
committed
Partially relax macro isolation to avoid problems with existing code
1 parent 81c6433 commit e2bda44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmseed.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ typedef int64_t nstime_t;
186186

187187
/** @def MS_EPOCH2NSTIME
188188
@brief macro to convert Unix/POSIX epoch time to high precision epoch time */
189-
#define MS_EPOCH2NSTIME(X) ((X) * (nstime_t) NSTMODULUS)
189+
#define MS_EPOCH2NSTIME(X) (X) * (nstime_t) NSTMODULUS
190190

191191
/** @def MS_NSTIME2EPOCH
192192
@brief Macro to convert high precision epoch time to Unix/POSIX epoch time */
193-
#define MS_NSTIME2EPOCH(X) ((X) / NSTMODULUS)
193+
#define MS_NSTIME2EPOCH(X) (X) / NSTMODULUS
194194

195195
/** @enum ms_timeformat_t
196196
@brief Time format identifiers

0 commit comments

Comments
 (0)