File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ namespace detail {
103103
104104 Result<const char *, internal_error> mach_o::symtab_info_data::get_string (std::size_t index) const {
105105 if (stringtab && index < symtab.strsize ) {
106- return stringtab.get () + index;
106+ return stringtab.unwrap (). data () + index;
107107 } else {
108108 return internal_error (" can't retrieve symbol from symtab" );
109109 }
@@ -287,7 +287,7 @@ namespace detail {
287287 }
288288 print_symbol_table_entry (
289289 entry.unwrap_value (),
290- stringtab ? stringtab.unwrap_value ().get () : nullptr ,
290+ stringtab ? stringtab.unwrap_value ().data () : nullptr ,
291291 symtab.strsize ,
292292 j
293293 );
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ namespace detail {
6363
6464 struct symtab_info_data {
6565 symtab_command symtab;
66- std::vector<char > stringtab;
66+ optional< std::vector<char > > stringtab;
6767 Result<const char *, internal_error> get_string (std::size_t index) const ;
6868 };
6969
You can’t perform that action at this time.
0 commit comments