File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ include ../py/py.mk
1010CFLAGS = -I. -I$(PY_SRC ) -Wall -Werror -ansi -std=gnu99 -DUNIX
1111LDFLAGS = -lm
1212
13- # Debugging/Optimization
13+ # Debugging/Optimization
1414ifdef DEBUG
15- CFLAGS += -Og -ggdb
15+ CFLAGS += -O0 -g
1616else
1717CFLAGS += -Os # -DNDEBUG
1818endif
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ include ../py/py.mk
1313CFLAGS = -I. -I$(PY_SRC ) -Wall -Werror -ansi -std=gnu99 -DUNIX
1414LDFLAGS = -lm
1515
16- # Debugging/Optimization
16+ # Debugging/Optimization
1717ifdef DEBUG
1818CFLAGS += -O0 -g
1919else
Original file line number Diff line number Diff line change @@ -362,6 +362,6 @@ void rawsocket_init() {
362362#endif
363363 rt_store_attr (m , MP_QSTR_getaddrinfo , (mp_obj_t )& mod_socket_getaddrinfo_obj );
364364 for (struct sym_entry * p = constants ; p -> sym != NULL ; p ++ ) {
365- rt_store_attr (m , QSTR_FROM_STR_STATIC (p -> sym ), MP_OBJ_NEW_SMALL_INT (p -> val ));
365+ rt_store_attr (m , QSTR_FROM_STR_STATIC (p -> sym ), MP_OBJ_NEW_SMALL_INT (( machine_int_t ) p -> val ));
366366 }
367367}
You can’t perform that action at this time.
0 commit comments