diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-02 17:00:40 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-02 22:11:46 -0700 |
| commit | 1b67d211b40b268180c3642fc8f6f09cbf0895a6 (patch) | |
| tree | 10159d086cab03097aa59118d87cbcd08b2203b9 /src/rt/rust.cpp | |
| parent | 01b254b411a954ebed24a38f873e02b7f6edd0a6 (diff) | |
| download | rust-1b67d211b40b268180c3642fc8f6f09cbf0895a6.tar.gz rust-1b67d211b40b268180c3642fc8f6f09cbf0895a6.zip | |
Add a rust_str typedef to the runtime. Issue #855
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 25fb9331314..fbf6ff7a08b 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -43,10 +43,10 @@ command_line_args : public kernel_owned<command_line_args> "command line arg interior"); args->fill = args->alloc = sizeof(rust_vec*) * argc; for (int i = 0; i < argc; ++i) { - rust_vec *str = make_str(kernel, argv[i], + rust_str *str = make_str(kernel, argv[i], strlen(argv[i]), "command line arg"); - ((rust_vec**)&args->data)[i] = str; + ((rust_str**)&args->data)[i] = str; } } |
