1
0
mirror of https://github.com/janet-lang/janet synced 2025-05-31 21:54:13 +00:00

Fix warnings w/ MSVC and format.

This commit is contained in:
Calvin Rose 2023-11-10 15:02:10 -06:00
parent f459e32ada
commit 93c83a2ee2
2 changed files with 1 additions and 2 deletions

View File

@ -135,7 +135,7 @@ void janet_buffer_extra(JanetBuffer *buffer, int32_t n) {
/* Push a cstring to buffer */
void janet_buffer_push_cstring(JanetBuffer *buffer, const char *cstring) {
int32_t len = strlen(cstring);
int32_t len = (int32_t) strlen(cstring);
janet_buffer_push_bytes(buffer, (const uint8_t *) cstring, len);
}

View File

@ -122,7 +122,6 @@ static void janet_net_socknoblock(JSock s) {
/* State machine for async connect */
void net_callback_connect(JanetFiber *fiber, JanetAsyncEvent event) {
JanetStream *stream = fiber->ev_stream;
switch (event) {