summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-06 18:47:39 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-06 18:47:39 +0000
commit7ec5e6e7e4c3590d5e9e65ef89cb7a9b1830124b (patch)
treefb392b4eec7bfce7d0e6ec4b11f72b9665913127 /src
parent8c1e9ef23d64c88b68b64449cc7a2b345805f382 (diff)
tr -d '\r'
Diffstat (limited to 'src')
-rw-r--r--src/htsarrays.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/htsarrays.h b/src/htsarrays.h
index 5c83a07..a750e42 100644
--- a/src/htsarrays.h
+++ b/src/htsarrays.h
@@ -104,11 +104,11 @@ static void hts_record_assert_memory_failed(const size_t size) {
while (TypedArrayRoom(A) < room_) { \
TypedArrayCapa(A) = TypedArrayCapa(A) < 16 ? 16 : TypedArrayCapa(A) * 2; \
} \
- TypedArrayPtr(A) = realloc(TypedArrayPtr(A), \
- TypedArrayCapa(A)*TypedArrayWidth(A)); \
- if (TypedArrayPtr(A) == NULL) { \
- hts_record_assert_memory_failed(TypedArrayCapa(A)*TypedArrayWidth(A)); \
- } \
+ TypedArrayPtr(A) = realloc(TypedArrayPtr(A), \
+ TypedArrayCapa(A)*TypedArrayWidth(A)); \
+ if (TypedArrayPtr(A) == NULL) { \
+ hts_record_assert_memory_failed(TypedArrayCapa(A)*TypedArrayWidth(A)); \
+ } \
} while(0)
/** Add an element. Macro, first element evaluated multiple times. **/