History

Final build issues from Mac (i.e. XCode)

arr committed 9 years ago

Commit 8d11a421 parent b0ff2264 files · +13 −9Browse files

Showing the changes to src/asm/sbl_reader.cpp (1 of 4 files). Show all

Unified · Split

src/asm/sbl_reader.cpp+6−6
@@ -125,7 +125,7 @@ namespace · 124 unmodified lines
125 const std::string &type_table_t::resolve_table_index<std::string>(int32_t idx) const125 const std::string &type_table_t::resolve_table_index<std::string>(int32_t idx) const
126 {126 {
127 const auto idx_local = idx & ~string_table_mask;127 const auto idx_local = idx & ~string_table_mask;
128 if (0 > idx_local || idx_local >= strings_table.size())128 if (idx_local >= strings_table.size())
129 throw std::out_of_range{ "Invalid string table index" };129 throw std::out_of_range{ "Invalid string table index" };
130 130
131 return strings_table[idx_local];131 return strings_table[idx_local];
@@ -137,7 +137,7 @@ namespace · 5 unmodified lines
137 if ((static_cast<uint32_t>(idx) & inner_type_table_mask) != 0)137 if ((static_cast<uint32_t>(idx) & inner_type_table_mask) != 0)
138 {138 {
139 const auto idx_local = idx & ~inner_type_table_mask;139 const auto idx_local = idx & ~inner_type_table_mask;
140 if (0 > idx_local || idx_local >= inner_type_table.size())140 if (idx_local >= inner_type_table.size())
141 throw std::out_of_range{ "Invalid inner type table index" };141 throw std::out_of_range{ "Invalid inner type table index" };
142 142
143 return inner_type_table[idx_local];143 return inner_type_table[idx_local];
@@ -155,7 +155,7 @@ namespace · 11 unmodified lines
155 const source_ref_t &type_table_t::resolve_table_index<source_ref_t>(int32_t idx) const155 const source_ref_t &type_table_t::resolve_table_index<source_ref_t>(int32_t idx) const
156 {156 {
157 const auto idx_local = idx & ~source_table_mask;157 const auto idx_local = idx & ~source_table_mask;
158 if (0 > idx_local || idx_local >= source_table.size())158 if (idx_local >= source_table.size())
159 throw std::out_of_range{ "Invalid source table index" };159 throw std::out_of_range{ "Invalid source table index" };
160 160
161 return source_table[idx_local];161 return source_table[idx_local];
@@ -165,7 +165,7 @@ namespace · 3 unmodified lines
165 const name_source_size_t &type_table_t::resolve_table_index<name_source_size_t>(int32_t idx) const165 const name_source_size_t &type_table_t::resolve_table_index<name_source_size_t>(int32_t idx) const
166 {166 {
167 const auto idx_local = idx & ~adt_table_mask;167 const auto idx_local = idx & ~adt_table_mask;
168 if (0 > idx_local || idx_local >= adt_table.size())168 if (idx_local >= adt_table.size())
169 throw std::out_of_range{ "Invalid adt table index" };169 throw std::out_of_range{ "Invalid adt table index" };
170 170
171 return adt_table[idx_local];171 return adt_table[idx_local];
@@ -175,9 +175,9 @@ namespace · 3 unmodified lines
175 const tuple_item_t &type_table_t::resolve_table_index<tuple_item_t>(int32_t idx) const175 const tuple_item_t &type_table_t::resolve_table_index<tuple_item_t>(int32_t idx) const
176 {176 {
177 const auto idx_local = idx & ~tuple_type_mask;177 const auto idx_local = idx & ~tuple_type_mask;
178 if (0 > idx_local || idx_local >= tuple_table.size())178 if (idx_local >= tuple_table.size())
179 throw std::out_of_range{ "Invalid tuple table index" };179 throw std::out_of_range{ "Invalid tuple table index" };
180 180
181 return tuple_table[idx_local];181 return tuple_table[idx_local];
182 }182 }
183 183