@@ -213,7 +213,7 @@ static MP_DEFINE_CONST_OBJ_TYPE(
213213// TODO: We just know that change happened somewhere between 1.4.0 and 1.4.1,
214214// investigate in more detail.
215215#if LWIP_VERSION_MACRO < 0x01040100
216- static const int error_lookup_table [] = {
216+ static const int8_t error_lookup_table [] = {
217217 0 , /* ERR_OK 0 No error, everything OK. */
218218 MP_ENOMEM , /* ERR_MEM -1 Out of memory error. */
219219 MP_ENOBUFS , /* ERR_BUF -2 Buffer error. */
@@ -234,7 +234,7 @@ static const int error_lookup_table[] = {
234234 MP_EBADF , /* _ERR_BADF -16 Closed socket (null pcb) */
235235};
236236#elif LWIP_VERSION_MACRO < 0x02000000
237- static const int error_lookup_table [] = {
237+ static const int8_t error_lookup_table [] = {
238238 0 , /* ERR_OK 0 No error, everything OK. */
239239 MP_ENOMEM , /* ERR_MEM -1 Out of memory error. */
240240 MP_ENOBUFS , /* ERR_BUF -2 Buffer error. */
@@ -258,7 +258,7 @@ static const int error_lookup_table[] = {
258258// Matches lwIP 2.0.3
259259#undef _ERR_BADF
260260#define _ERR_BADF -17
261- static const int error_lookup_table [] = {
261+ static const int8_t error_lookup_table [] = {
262262 0 , /* ERR_OK 0 No error, everything OK */
263263 MP_ENOMEM , /* ERR_MEM -1 Out of memory error */
264264 MP_ENOBUFS , /* ERR_BUF -2 Buffer error */
0 commit comments