~ chicken-core (chicken-5) af7f338de8b5ffb93a0363235e51f3c124f035c7
commit af7f338de8b5ffb93a0363235e51f3c124f035c7 Author: Evan Hanson <evhan@foldling.org> AuthorDate: Wed Mar 16 10:45:39 2016 +1300 Commit: Evan Hanson <evhan@foldling.org> CommitDate: Wed Mar 16 10:45:39 2016 +1300 Really send C_DEBUGGER_REPLY_GET_BYTES responses as unsigned char values As with a26f82fe, whose commit message erroneously claims it changes C_DEBUGGER_REPLY_GET_BYTES responses when in fact it changes the BLOB type of REPLY_GET_SLOTS responses. This commit actually fixes REPLY_GET_BYTES responses, in the same way. diff --git a/dbg-stub.c b/dbg-stub.c index ad1fd97b..d4016992 100644 --- a/dbg-stub.c +++ b/dbg-stub.c @@ -353,7 +353,7 @@ send_event(int event, C_char *loc, C_char *val, C_char *cloc, int cln) send_string("(*"); while(mask--) { - sprintf(rw_buffer, " %d", *(ptr++)); + sprintf(rw_buffer, " %u", (unsigned char) *(ptr++)); send_string(rw_buffer); }Trap