History

Fix some issues when building on mac

elinor fung committed 9 years ago

Commit 34cadb21 parent db76c0c12 files · +47 −44Browse files

Showing the changes to src/vm/sys/Sysmod.cpp (1 of 12 files). Show all

Unified · Split

src/vm/sys/Sysmod.cpp+3−3
@@ -293,7 +293,7 @@ Sys_byte2char(vm_registers_t &r, vm_t &vm) · 292 unmodified lines
293293 fp.ret->t2 = 0;
294294
295295 auto state = utf8::decode_state_t::accept;
296− auto result = rune_t{};
296+ auto result = runtime::rune_t{};
297297 const auto buffer_len = buffer->get_length();
298298 for (auto i = n; i < buffer_len; ++i)
299299 {
@@ -326,7 +326,7 @@ Sys_char2byte(vm_registers_t &r, vm_t &vm) · 26 unmodified lines
326326 if (buffer == nullptr || n >= buffer->get_length())
327327 throw out_of_range_memory{};
328328
329− const auto rune = static_cast<rune_t>(fp.c);
329+ const auto rune = static_cast<runtime::rune_t>(fp.c);
330330
331331 static_assert(Sys_UTFmax == sizeof(rune), "UTF max should be same size as rune");
332332 uint8_t buffer_local[Sys_UTFmax];
@@ -689,7 +689,7 @@ Sys_stream(vm_registers_t &r, vm_t &vm) · 356 unmodified lines
689689
690690 namespace
691691 {
692− bool is_delim(const rune_t c, const vm_string_t &delim)
692+ bool is_delim(const runtime::rune_t c, const vm_string_t &delim)
693693 {
694694 const auto max = delim.get_length();
695695 assert(max > 0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t