Fix build with -pedantic

svn path=/trunk/kdegraphics/kdvi/; revision=45763
remotes/origin/kdvi-2.0
Bernhard Rosenkraenzer 26 years ago
parent 08c0c2c9b5
commit 8abc014df5
  1. 2
      util.cpp

@ -113,7 +113,7 @@ char * xmalloc(unsigned size, _Xconst char *why)
{
/* Avoid malloc(0), though it's not clear if it ever actually
happens any more. */
char *mem = malloc(size ? size : 1);
char *mem = (char *)malloc(size ? size : 1);
if (mem == NULL)
oops("! Cannot allocate %u bytes for %s.\n", size, why);

Loading…
Cancel
Save