diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-06 18:47:39 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-06 18:47:39 +0000 |
commit | 7ec5e6e7e4c3590d5e9e65ef89cb7a9b1830124b (patch) | |
tree | fb392b4eec7bfce7d0e6ec4b11f72b9665913127 /src/htsarrays.h | |
parent | 8c1e9ef23d64c88b68b64449cc7a2b345805f382 (diff) |
tr -d '\r'
Diffstat (limited to 'src/htsarrays.h')
-rw-r--r-- | src/htsarrays.h | 10 |
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. **/ |