hV *method_name_val = sbVm_pop(vm);
if (method_name_val->type != IT_SYMBOL) {
- PANIC("method name must be symbol! (is %zd, target %zd)", method_name_val->type, target->type);
+ PANIC("method name must be symbol! (is %lld, target %lld)", (long long)method_name_val->type, (long long)target->type);
}
sbLibTable *table_to_use = find_method_table(target);
if (a->type == IT_INTEGER && b->type == IT_INTEGER) {
return sbV_int(a->integer % b->integer);
} else {
- PANIC("todo %zd", a->type);
+ PANIC("todo %lld", (long long)a->type);
}
}
const char *strdata = sbString_get_value(a->string, scratch, &length);
if (min >= max || min >= length || max < 0) {
/* backwards or out of range */
- return sbV_empty_string(0);
+ return sbV_empty_string();
} else {
/* now we know 0 <= max, min < max, min < length. clip min and max to bounds */
if (max >= length) max = length;