This cast that resolves this warning does not change the sign of `sz`, because the if statement above it makes sure it isn't a negative number.
sz = topdictsize(obj);
if (sz < MINATTR)
sz = MINATTR;
- rec->str = agalloc(agraphof(obj), sz * sizeof(char *));
+ rec->str = agalloc(agraphof(obj), (size_t) sz * sizeof(char *));
/* doesn't call agxset() so no obj-modified callbacks occur */
for (sym = (Agsym_t *) dtfirst(datadict); sym;
sym = (Agsym_t *) dtnext(datadict, sym))