1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 23:53:02 +00:00

Format source.

This commit is contained in:
Calvin Rose
2020-11-11 09:40:59 -06:00
parent 6f1d5d3b73
commit c192caa349
2 changed files with 15 additions and 16 deletions

View File

@@ -244,8 +244,7 @@ JanetAsyncStatus net_machine_read(JanetListenerState *s, JanetAsyncEvent event)
}
/* fallthrough */
case JANET_ASYNC_EVENT_USER:
{
case JANET_ASYNC_EVENT_USER: {
state->flags = 0;
int32_t chunk_size = state->bytes_left > JANET_NET_CHUNKSIZE ? JANET_NET_CHUNKSIZE : state->bytes_left;
state->wbuf.len = (ULONG) chunk_size;