Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extern/decNumber/decBasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ decFloat * decFloatAdd(decFloat *result,
// the following buffers hold coefficients with various alignments
// (see commentary and diagrams below)
uByte acc[4+2+DECPMAX*3+8];
uByte buf[4+2+DECPMAX*2];
uByte buf[4+2+DECPMAX*2+4];
uByte *umsd, *ulsd; // local MSD and LSD pointers

#if DECLITEND
Expand Down
3 changes: 2 additions & 1 deletion extern/decNumber/decCommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ static decFloat * decFinalize(decFloat *df, bcdnum *num,
uByte *t=buffer; // safe target
uByte *tlsd=buffer+(ulsd-umsd)+shift; // target LSD
// printf("folddown shift=%ld\n", (LI)shift);
for (; s<=ulsd; s+=4, t+=4) UBFROMUI(t, UBTOUI(s));
for (; s+3<=ulsd; s+=4, t+=4) UBFROMUI(t, UBTOUI(s));
for (; s<=ulsd; s++, t++) *t=*s;
for (t=tlsd-shift+1; t<=tlsd; t+=4) UBFROMUI(t, 0); // pad 0s
num->exponent-=shift;
umsd=buffer;
Expand Down
Loading