Skip to content

Commit

Permalink
Fix incorrect use of SpaceBetweenPointers
Browse files Browse the repository at this point in the history
StopBags may be smaller or larger than EndBags, so we cannot
use SpaceBetweenPointers. We switch to just using '-'.
  • Loading branch information
ChrisJefferson authored and markuspf committed Feb 6, 2018
1 parent 8d421de commit b961ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gasman.c
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ UInt CollectBags (
/* information after the check phase */
if ( MsgsFuncBags )
(*MsgsFuncBags)( FullBags, 5,
SpaceBetweenPointers(EndBags, stopBags)/(1024/sizeof(Bag)));
(EndBags - stopBags)/(1024/sizeof(Bag)));
if ( MsgsFuncBags )
(*MsgsFuncBags)( FullBags, 6,
SizeWorkspace/(1024/sizeof(Bag)));
Expand Down

0 comments on commit b961ab0

Please sign in to comment.