aboutsummaryrefslogtreecommitdiff
path: root/src/rt
diff options
context:
space:
mode:
authorTohava <tohava@tohava-laptop.(none)>2010-08-05 04:19:46 +0300
committerTohava <tohava@tohava-laptop.(none)>2010-08-05 04:19:46 +0300
commitce79b0e492f1583debbce3c8155da3536c684d9a (patch)
treef5a2a22230510dd14901742a4904c576f62a8500 /src/rt
parentAdded AST logging, and modified AST for consistent handling of alt stmts. (diff)
parentThread argument-types down to internal_check_outer_lval in type.ml, in prepar... (diff)
downloadrust-ce79b0e492f1583debbce3c8155da3536c684d9a.tar.xz
rust-ce79b0e492f1583debbce3c8155da3536c684d9a.zip
Merge branch 'master' of git://github.com/graydon/rust
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 0879681c..657109c6 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -116,9 +116,9 @@ str_buf(rust_task *task, rust_str *s)
}
extern "C" CDECL void *
-vec_buf(rust_task *task, type_desc *ty, rust_vec *v)
+vec_buf(rust_task *task, type_desc *ty, rust_vec *v, size_t offset)
{
- return (void *)&v->data[0];
+ return (void *)&v->data[ty->size * offset];
}
extern "C" CDECL size_t