Skip to content

Commit 0d1638d

Browse files
committed
Fix some more Mac warnings
1 parent 74e4508 commit 0d1638d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/gctools/gc_interface.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ void dumpBoehmLayoutTables(std::ostream& fout) {
740740
#define Init_templated_kind(_class_) \
741741
fmt::print(fout, "Init_templated_kind( stamp={}, name=\"{}\", size={});\n", LAYOUT_STAMP(_class_),#_class_,sizeof(*(_class_*)0x0));
742742
#define Init__fixed_field(_class_,_index_,_type_,_field_name_) \
743-
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_));
743+
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_));
744744
#define Init__variable_array0(_class_,_data_field_) \
745745
fmt::print(fout,"Init__variable_array0( stamp={}, name=\"{}\", offset={} );\n", LAYOUT_STAMP(_class_),#_data_field_,offsetof(_class_,_data_field_));
746746
#define Init__variable_capacity(_class_,_value_type_,_end_,_capacity_) \

src/llvmo/llvmoExpose.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4643,7 +4643,7 @@ std::string SectionedAddress_O::__repr__() const {
46434643
void python_dump_field(std::ostream& fout, const char* name, bool comma, gctools::Data_types dt, size_t offset, size_t sz=0)
46444644
{
46454645
if (comma) fmt::print(fout, ",");
4646-
fmt::print(fout, "[ \"{}\", {}, {}, {} ]\n", name, dt, offset, sz );
4646+
fmt::print(fout, "[ \"{}\", {}, {}, {} ]\n", name, (int)dt, offset, sz );
46474647
}
46484648

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

0 commit comments

Comments
 (0)