This allows the client to consider the stream as a written u8vector, without needing to mask off the extra bits of any elements outside the byte range. --- dbg-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dbg-stub.c b/dbg-stub.c index 96227de..bbfa3c5 100644 --- a/dbg-stub.c +++ b/dbg-stub.c @@ -381,7 +381,7 @@ send_event(int event, C_char *loc, C_char *val, C_char *cloc, int cln) send_string(rw_buffer); for(n = 0; n < reply; ++n) { - sprintf(rw_buffer, " %lu", (unsigned long)((char *)C_data_pointer(x))[ n ]); + sprintf(rw_buffer, " %u", ((unsigned char *)C_data_pointer(x))[ n ]); send_string(rw_buffer); } -- 2.7.0.rc3 _______________________________________________ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers