mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 10:28:42 +00:00
use correct type for sizeof
**L would have worked well too. Depending on the distribution sizeof *L may return 8 instead of 4. **L is preferable, but since we don't expect this datatype to change very often, sizeof int is less subtle and easier to understand. Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
This commit is contained in:
parent
19c31231fa
commit
6a575b8900
@ -23,7 +23,7 @@ static void create_or_reset_lcs_table()
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (L != NULL) {
|
if (L != NULL) {
|
||||||
memset(*L, 0, sizeof(*L) * MAX_SSDIFF_SIZE);
|
memset(*L, 0, sizeof(int) * MAX_SSDIFF_SIZE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user