Skip to content

Commit

Permalink
Add packing for message types to partially address #240
Browse files Browse the repository at this point in the history
  • Loading branch information
heliosfa committed Jul 5, 2021
1 parent 9bc3b38 commit cd4f490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/OrchBase/Composer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ void Composer::writeMessageTypes(GraphI_t* graphI, std::ofstream& pkt_h)

pkt_h << "#include <cstdint>\n";

//pkt_h << "#pragma pack(push,1)\n";
pkt_h << "#pragma pack(push,1)\n";

WALKVECTOR(MsgT_t*,graphT->MsgT_v,msg)
{
Expand All @@ -2014,7 +2014,7 @@ void Composer::writeMessageTypes(GraphI_t* graphI, std::ofstream& pkt_h)
pkt_h << "\n} pkt_" << (*msg)->Name() << "_pyld_t;\n\n";
}

//pkt_h << "#pragma pack(pop)\n";
pkt_h << "#pragma pack(pop)\n";

pkt_h << "#endif /*_MESSAGETYPES_H_*/\n\n";
}
Expand Down

0 comments on commit cd4f490

Please sign in to comment.