--- rxvt-unicode/src/xpm.C 2003/11/25 11:52:42 1.3 +++ rxvt-unicode/src/xpm.C 2003/12/18 02:07:12 1.4 @@ -1,7 +1,7 @@ /*--------------------------------*-C-*---------------------------------* * File: xpm.c *----------------------------------------------------------------------* - * $Id: xpm.C,v 1.3 2003/11/25 11:52:42 pcg Exp $ + * $Id: xpm.C,v 1.4 2003/12/18 02:07:12 pcg Exp $ * * All portions of code are copyright by their respective author/s. * Copyright (c) 1997 Carsten Haitzler @@ -64,7 +64,7 @@ if (geom == NULL) return 0; - str = rxvt_malloc(MAXLEN_GEOM + 1); + str = (char *)rxvt_malloc (MAXLEN_GEOM + 1); if (!STRCMP(geom, "?")) { sprintf(str, "[%dx%d+%d+%d]", /* can't presume snprintf() ! */ min(bgpixmap->w, 9999), min(bgpixmap->h, 9999), @@ -284,7 +284,7 @@ if (pos <= 0) cxy = 0; else if (pos < cxy) - cxy = pos; + cxy = (int) pos; cwh += cxy; } else { /* expand */ if (cxy > 0) { /* position */