Skip to content

Commit e3219e9

Browse files
authored
Merge pull request #2216 from JohanMabille/endianness
Made global variable const to force internal linkage
2 parents 6eac783 + c0cc47a commit e3219e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/xtensor/xnpy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace xt
6060
const char big_endian_char = '>';
6161
const char no_endian_char = '|';
6262

63-
static char host_endian_char = (is_big_endian() ? big_endian_char : little_endian_char);
63+
const char host_endian_char = (is_big_endian() ? big_endian_char : little_endian_char);
6464

6565
template <class O>
6666
inline void write_magic(O& ostream,

0 commit comments

Comments
 (0)