Skip to content

Commit

Permalink
Fix some more Mac warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bike committed Dec 2, 2022
1 parent 74e4508 commit 0d1638d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gctools/gc_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ void dumpBoehmLayoutTables(std::ostream& fout) {
#define Init_templated_kind(_class_) \
fmt::print(fout, "Init_templated_kind( stamp={}, name=\"{}\", size={});\n", LAYOUT_STAMP(_class_),#_class_,sizeof(*(_class_*)0x0));
#define Init__fixed_field(_class_,_index_,_type_,_field_name_) \
fmt::print(fout, "Init__fixed_field( stamp={}, index={}, data_type={},field_name=\"{}\",field_offset={});\n", LAYOUT_STAMP(_class_),_index_,_type_,#_field_name_,offsetof(_class_,_field_name_));
fmt::print(fout, "Init__fixed_field( stamp={}, index={}, data_type={},field_name=\"{}\",field_offset={});\n", LAYOUT_STAMP(_class_),_index_,(int)_type_,#_field_name_,offsetof(_class_,_field_name_));
#define Init__variable_array0(_class_,_data_field_) \
fmt::print(fout,"Init__variable_array0( stamp={}, name=\"{}\", offset={} );\n", LAYOUT_STAMP(_class_),#_data_field_,offsetof(_class_,_data_field_));
#define Init__variable_capacity(_class_,_value_type_,_end_,_capacity_) \
Expand Down
2 changes: 1 addition & 1 deletion src/llvmo/llvmoExpose.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4643,7 +4643,7 @@ std::string SectionedAddress_O::__repr__() const {
void python_dump_field(std::ostream& fout, const char* name, bool comma, gctools::Data_types dt, size_t offset, size_t sz=0)
{
if (comma) fmt::print(fout, ",");
fmt::print(fout, "[ \"{}\", {}, {}, {} ]\n", name, dt, offset, sz );
fmt::print(fout, "[ \"{}\", {}, {}, {} ]\n", name, (int)dt, offset, sz );
}

void dump_objects_for_debugger(std::ostream& fout,std::string indent)
Expand Down

0 comments on commit 0d1638d

Please sign in to comment.