1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 15:43:01 +00:00

fix C format

This commit is contained in:
J.-F. Cap
2019-02-24 22:36:35 +01:00
parent c81bf42f6b
commit 632b920e97
3 changed files with 52 additions and 51 deletions

View File

@@ -926,7 +926,7 @@ void janet_unmarshal_byte(JanetMarshalContext *ctx, uint8_t *b) {
void janet_unmarshal_bytes(JanetMarshalContext *ctx, uint8_t *dest, int32_t len) {
UnmarshalState *st = (UnmarshalState *)(ctx->u_state);
MARSH_EOS(st, ctx->data+len-1);
MARSH_EOS(st, ctx->data + len - 1);
memcpy(dest, ctx->data, len);
ctx->data += len;
}