Skip to content

Commit

Permalink
Fix builds on newer versions of clang
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoscon committed Apr 3, 2024
1 parent 56b89da commit 5fb596d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orderbook/orderbook.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ static int okx_string_builder(PyObject *pydata, uint8_t *data, int *pos)
}

// default 'str' formatting is wrong when the value is in scientific notation
if (EXPECT(memchr(&data[startpos], (char) 'E', *pos - startpos), 0)) {
if (EXPECT((long)memchr(&data[startpos], (char) 'E', *pos - startpos), (long)0)) {
*pos = startpos;
if (EXPECT(formatf_string_builder(pydata, data, pos), 0)) {
return -1;
Expand Down
2 changes: 1 addition & 1 deletion orderbook/orderbook.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static PyModuleDef orderbookmodule = {
.m_slots = NULL,
.m_traverse = order_book_traverse,
.m_clear = order_book_clear,
.m_free = order_book_free,
.m_free = (void *)order_book_free,
};


Expand Down

0 comments on commit 5fb596d

Please sign in to comment.