Merge pull request #6911 from douzzer/20231025-sp_to_unsigned_bin_len_ct-Wconversion-cast

20231025-sp_to_unsigned_bin_len_ct-Wconversion-cast
This commit is contained in:
JacobBarthelmeh
2023-10-26 10:33:50 -06:00
committed by GitHub

View File

@@ -17813,7 +17813,7 @@ int sp_to_unsigned_bin_len_ct(const sp_int* a, byte* out, int outSz)
d = a->dp[i];
/* Place each byte of a digit into the buffer. */
for (b = 0; (j >= 0) && (b < SP_WORD_SIZEOF); b++) {
out[j--] = (byte)(d & mask);
out[j--] = (byte)((sp_digit)d & mask);
d >>= 8;
}
mask &= (sp_digit)0 - (i < a->used - 1);