mirror of
https://github.com/janet-lang/janet
synced 2025-07-04 02:52:59 +00:00
Try to silence some appveyor warnings.
This commit is contained in:
parent
d73079652b
commit
f3480c1c1d
@ -334,7 +334,7 @@ static void dst_quick_asm(
|
|||||||
def->flags = flags;
|
def->flags = flags;
|
||||||
def->slotcount = slots;
|
def->slotcount = slots;
|
||||||
def->bytecode = malloc(bytecode_size);
|
def->bytecode = malloc(bytecode_size);
|
||||||
def->bytecode_length = bytecode_size / sizeof(uint32_t);
|
def->bytecode_length = (int32_t)(bytecode_size / sizeof(uint32_t));
|
||||||
def->name = dst_cstring(name);
|
def->name = dst_cstring(name);
|
||||||
if (!def->bytecode) {
|
if (!def->bytecode) {
|
||||||
DST_OUT_OF_MEMORY;
|
DST_OUT_OF_MEMORY;
|
||||||
|
@ -384,7 +384,7 @@ static Dst doframe(DstStackFrame *frame) {
|
|||||||
dst_table_put(t, dst_csymbolv(":tail"), dst_wrap_true());
|
dst_table_put(t, dst_csymbolv(":tail"), dst_wrap_true());
|
||||||
}
|
}
|
||||||
if (frame->func && frame->pc) {
|
if (frame->func && frame->pc) {
|
||||||
off = frame->pc - def->bytecode;
|
off = (int32_t) (frame->pc - def->bytecode);
|
||||||
dst_table_put(t, dst_csymbolv(":pc"), dst_wrap_integer(off));
|
dst_table_put(t, dst_csymbolv(":pc"), dst_wrap_integer(off));
|
||||||
if (def->sourcemap) {
|
if (def->sourcemap) {
|
||||||
DstSourceMapping mapping = def->sourcemap[off];
|
DstSourceMapping mapping = def->sourcemap[off];
|
||||||
|
@ -305,7 +305,7 @@ void *dst_gcalloc(enum DstMemoryType type, size_t size) {
|
|||||||
mdata->flags = type;
|
mdata->flags = type;
|
||||||
|
|
||||||
/* Prepend block to heap list */
|
/* Prepend block to heap list */
|
||||||
dst_vm_next_collection += size;
|
dst_vm_next_collection += (int32_t) size;
|
||||||
mdata->next = dst_vm_blocks;
|
mdata->next = dst_vm_blocks;
|
||||||
dst_vm_blocks = mdata;
|
dst_vm_blocks = mdata;
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ static const char *read_chunk(IOFile *iof, DstBuffer *buffer, int32_t nBytesMax)
|
|||||||
size_t nread = fread((char *)(buffer->data + buffer->count), 1, ntoread, iof->file);
|
size_t nread = fread((char *)(buffer->data + buffer->count), 1, ntoread, iof->file);
|
||||||
if (nread != ntoread && ferror(iof->file))
|
if (nread != ntoread && ferror(iof->file))
|
||||||
return "could not read file";
|
return "could not read file";
|
||||||
buffer->count += nread;
|
buffer->count += (int32_t) nread;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user