You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example {0xFF, 0xFF} shift left XP_lshift(3, z, 2, x, 20, 0) should be {0, 0, 0} , but is {0, 0xFF, 0xFF}.
Fix:
int i, j = n-1;
if (n >= m + s/8)
// +++------+++ m
// ============= n
i = m - 1;
else
// +++------+++ m
// ======= n < m + s/8
// ===== n < m
i = n - s/8 - 1;
The text was updated successfully, but these errors were encountered:
https://github.com/drh/cii/blob/master/src/xp.c#L192
should change to
if (n >= m + s/8)
For example
{0xFF, 0xFF}
shift leftXP_lshift(3, z, 2, x, 20, 0)
should be{0, 0, 0}
, but is {0, 0xFF, 0xFF}.Fix:
The text was updated successfully, but these errors were encountered: