diff options
| author | Tohava <tohava@tohava-laptop.(none)> | 2010-08-05 04:19:46 +0300 |
|---|---|---|
| committer | Tohava <tohava@tohava-laptop.(none)> | 2010-08-05 04:19:46 +0300 |
| commit | ce79b0e492f1583debbce3c8155da3536c684d9a (patch) | |
| tree | f5a2a22230510dd14901742a4904c576f62a8500 /src/rt | |
| parent | Added AST logging, and modified AST for consistent handling of alt stmts. (diff) | |
| parent | Thread argument-types down to internal_check_outer_lval in type.ml, in prepar... (diff) | |
| download | rust-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.cpp | 4 |
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 |