Skip to content

Commit

Permalink
Merge pull request #6 from molgen/fix-inline
Browse files Browse the repository at this point in the history
samtools: Enable -O0 compilation with C99
  • Loading branch information
pmenzel authored Oct 9, 2017
2 parents ec14e37 + 568887f commit 866fa5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samtools/bgzf.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ static const int GZIP_WINDOW_BITS = -15; // no zlib header
static const int Z_DEFAULT_MEM_LEVEL = 8;


inline
static inline
void
packInt16(uint8_t* buffer, uint16_t value)
{
buffer[0] = value;
buffer[1] = value >> 8;
}

inline
static inline
int
unpackInt16(const uint8_t* buffer)
{
return (buffer[0] | (buffer[1] << 8));
}

inline
static inline
void
packInt32(uint8_t* buffer, uint32_t value)
{
Expand Down

0 comments on commit 866fa5b

Please sign in to comment.