Fix std::copy arguments in ratpak.h

This commit is contained in:
fwcd 2019-04-06 17:57:26 +02:00
commit 79a5bbabd7

View file

@ -211,7 +211,7 @@ _destroynum(x),(x)=nullptr
int32_t trim = (x)->cdigit - precision-g_ratio;\ int32_t trim = (x)->cdigit - precision-g_ratio;\
if ( trim > 1 ) \ if ( trim > 1 ) \
{ \ { \
std::copy(&((x)->mant.begin() + trim), (x)->mant.begin(), (x)->cdigit-trim);\ std::copy((x)->mant.begin() + trim, (x)->mant.begin(), (x)->cdigit-trim);\
(x)->cdigit -= trim; \ (x)->cdigit -= trim; \
(x)->exp += trim; \ (x)->exp += trim; \
} \ } \
@ -221,7 +221,7 @@ std::copy(&((x)->mant.begin() + trim), (x)->mant.begin(), (x)->cdigit-trim);\
int32_t trim = (x)->pp->cdigit - (precision/g_ratio) - 2;\ int32_t trim = (x)->pp->cdigit - (precision/g_ratio) - 2;\
if ( trim > 1 ) \ if ( trim > 1 ) \
{ \ { \
std::copy(&((x)->pp->mant[trim]), (x)->pp->mant, ((x)->pp->cdigit-trim)); \ std::copy((x)->pp->mant.begin() + trim, (x)->pp->mant.begin(), ((x)->pp->cdigit-trim)); \
(x)->pp->cdigit -= trim; \ (x)->pp->cdigit -= trim; \
(x)->pp->exp += trim; \ (x)->pp->exp += trim; \
} \ } \