help coverity with max size issue on unsigned addition
This commit is contained in:
parent
4104b74c40
commit
697f77bef5
@ -95,7 +95,7 @@ void s_fp_add(fp_int *a, fp_int *b, fp_int *c)
|
||||
register fp_word t;
|
||||
|
||||
y = MAX(a->used, b->used);
|
||||
oldused = c->used;
|
||||
oldused = MAX(c->used, FP_SIZE); /* help static analysis w/ max size */
|
||||
c->used = y;
|
||||
|
||||
t = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user