Merge pull request #8963 from SparkiDev/sp_int_type_fix

CodeQL: o is larger type and could cause issues
This commit is contained in:
David Garske
2025-07-09 16:30:01 -07:00
committed by GitHub

View File

@@ -7600,7 +7600,7 @@ static void _sp_add_off(const sp_int* a, const sp_int* b, sp_int* r, int o)
* @param [in] o Number of digits to offset b.
*/
static void _sp_sub_off(const sp_int* a, const sp_int* b, sp_int* r,
unsigned int o)
sp_size_t o)
{
sp_size_t i = 0;
sp_size_t j;
@@ -7618,7 +7618,7 @@ static void _sp_sub_off(const sp_int* a, const sp_int* b, sp_int* r,
}
}
else {
i = (sp_size_t)o;
i = o;
}
/* Index to add at is the offset now. */