picoppp: use char instead of u8

This commit is contained in:
Flyinghead 2020-11-30 13:05:13 +01:00
parent 1d17dbd121
commit c6f5a406a7
1 changed files with 4 additions and 4 deletions

View File

@ -81,13 +81,13 @@ struct socket_pair
pico_socket *pico_sock;
sock_t native_sock;
std::vector<u8> in_buffer;
std::vector<char> in_buffer;
void receive_native()
{
size_t len;
const u8 *data;
u8 buf[512];
const char *data;
char buf[512];
if (!in_buffer.empty())
{
@ -136,7 +136,7 @@ struct socket_pair
if (r2 > 0 || in_buffer.empty())
{
len -= r2;
std::vector<u8> remain(len);
std::vector<char> remain(len);
memcpy(&remain[0], &data[r2], len);
std::swap(in_buffer, remain);
}