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
125125 const std::string &type_table_t::resolve_table_index<std::string>(int32_t idx) const
126126 {
127127 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())
129129 throw std::out_of_range{ "Invalid string table index" };
130130
131131 return strings_table[idx_local];
@@ -137,7 +137,7 @@ namespace · 5 unmodified lines
137137 if ((static_cast<uint32_t>(idx) & inner_type_table_mask) != 0)
138138 {
139139 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())
141141 throw std::out_of_range{ "Invalid inner type table index" };
142142
143143 return inner_type_table[idx_local];
@@ -155,7 +155,7 @@ namespace · 11 unmodified lines
155155 const source_ref_t &type_table_t::resolve_table_index<source_ref_t>(int32_t idx) const
156156 {
157157 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())
159159 throw std::out_of_range{ "Invalid source table index" };
160160
161161 return source_table[idx_local];
@@ -165,7 +165,7 @@ namespace · 3 unmodified lines
165165 const name_source_size_t &type_table_t::resolve_table_index<name_source_size_t>(int32_t idx) const
166166 {
167167 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())
169169 throw std::out_of_range{ "Invalid adt table index" };
170170
171171 return adt_table[idx_local];
@@ -175,9 +175,9 @@ namespace · 3 unmodified lines
175175 const tuple_item_t &type_table_t::resolve_table_index<tuple_item_t>(int32_t idx) const
176176 {
177177 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())
179179 throw std::out_of_range{ "Invalid tuple table index" };
180−
180+
181181 return tuple_table[idx_local];
182182 }
183183