summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/claptrap-init.c')
-rw-r--r--base/claptrap-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/claptrap-init.c b/base/claptrap-init.c
index f32e2712..3e20d3ed 100644
--- a/base/claptrap-init.c
+++ b/base/claptrap-init.c
@@ -45,8 +45,8 @@ ClapTrap *ClapTrap_Init(gs_memory_t *mem,
ct->y = 0;
ct->span = width * num_comps;
- ct->linebuf = gs_alloc_bytes(mem, ct->span * ct->lines_in_buf, "ClapTrap linebuf");
- ct->process = gs_alloc_bytes(mem, ct->width * ct->lines_in_buf, "ClapTrap process");
+ ct->linebuf = gs_alloc_bytes(mem, (size_t)ct->span * ct->lines_in_buf, "ClapTrap linebuf");
+ ct->process = gs_alloc_bytes(mem, (size_t)ct->width * ct->lines_in_buf, "ClapTrap process");
if (ct->linebuf == NULL || ct->process == NULL)
{
gs_free_object(mem, ct->linebuf, "ClapTrap linebuf");