rt: Fix build errors on win
This commit is contained in:
parent
3f8223ffc2
commit
70ecfa686a
|
@ -95,10 +95,10 @@ rust_env_pairs() {
|
||||||
++envc;
|
++envc;
|
||||||
}
|
}
|
||||||
c = ch;
|
c = ch;
|
||||||
rust_vec *v = (rust_vec *)
|
rust_vec_box *v = (rust_vec_box *)
|
||||||
task->kernel->malloc(vec_size<rust_vec*>(envc),
|
task->kernel->malloc(vec_size<rust_vec_box*>(envc),
|
||||||
"str vec interior");
|
"str vec interior");
|
||||||
v->fill = v->alloc = sizeof(rust_vec*) * envc;
|
v->body.fill = v->body.alloc = sizeof(rust_vec*) * envc;
|
||||||
for (size_t i = 0; i < envc; ++i) {
|
for (size_t i = 0; i < envc; ++i) {
|
||||||
size_t n = strlen(c);
|
size_t n = strlen(c);
|
||||||
rust_str *str = make_str(task->kernel, c, n, "str");
|
rust_str *str = make_str(task->kernel, c, n, "str");
|
||||||
|
|
Loading…
Reference in New Issue