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
293 fp.ret->t2 = 0;293 fp.ret->t2 = 0;
294 294
295 auto state = utf8::decode_state_t::accept;295 auto state = utf8::decode_state_t::accept;
296 auto result = rune_t{};296 auto result = runtime::rune_t{};
297 const auto buffer_len = buffer->get_length();297 const auto buffer_len = buffer->get_length();
298 for (auto i = n; i < buffer_len; ++i)298 for (auto i = n; i < buffer_len; ++i)
299 {299 {
@@ -326,7 +326,7 @@ Sys_char2byte(vm_registers_t &r, vm_t &vm) · 26 unmodified lines
326 if (buffer == nullptr || n >= buffer->get_length())326 if (buffer == nullptr || n >= buffer->get_length())
327 throw out_of_range_memory{};327 throw out_of_range_memory{};
328 328
329 const auto rune = static_cast<rune_t>(fp.c);329 const auto rune = static_cast<runtime::rune_t>(fp.c);
330 330
331 static_assert(Sys_UTFmax == sizeof(rune), "UTF max should be same size as rune");331 static_assert(Sys_UTFmax == sizeof(rune), "UTF max should be same size as rune");
332 uint8_t buffer_local[Sys_UTFmax];332 uint8_t buffer_local[Sys_UTFmax];
@@ -689,7 +689,7 @@ Sys_stream(vm_registers_t &r, vm_t &vm) · 356 unmodified lines
689 689
690namespace690namespace
691{691{
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)
693 {693 {
694 const auto max = delim.get_length();694 const auto max = delim.get_length();
695 assert(max > 0);695 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