Skip to content

Commit

Permalink
Fix code scanning alert no. 36: Multiplication result converted to la…
Browse files Browse the repository at this point in the history
…rger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent d945ae6 commit 44b3f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -3719,7 +3719,7 @@ xbm_load (struct frame *f, struct image *img)
char *p;
int nbytes = (img->width + BITS_PER_CHAR - 1) / BITS_PER_CHAR;

p = bits = alloca (nbytes * img->height);
p = bits = alloca ((unsigned long)nbytes * img->height);
for (i = 0; i < img->height; ++i, p += nbytes)
{
Lisp_Object line = AREF (data, i);
Expand Down

0 comments on commit 44b3f2c

Please sign in to comment.