Skip to content

Commit

Permalink
Fixed encoder and decoder for 32-bit arch
Browse files Browse the repository at this point in the history
  • Loading branch information
aquaratixc committed Nov 14, 2022
1 parent cc499d2 commit 38feef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/styx2000/protomsg/decoder.d
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private {
E listOfTypes;
StyxObject[] msg;

ulong vlsPosition = 0;
size_t vlsPosition = 0;

foreach (e; listOfTypes)
{
Expand Down
2 changes: 1 addition & 1 deletion source/styx2000/protomsg/encoder.d
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ auto encode(StyxObject[] msg)
throw new Exception(`Bad message content: wrong Styx type in message`);
}

uint length = 0;
size_t length = 0;

foreach (f; msg[1..$])
{
Expand Down

0 comments on commit 38feef7

Please sign in to comment.