summaryrefslogtreecommitdiff
path: root/src/PixFormats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PixFormats.c')
-rw-r--r--src/PixFormats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PixFormats.c b/src/PixFormats.c
index 8e4a1002..6d9f64d2 100644
--- a/src/PixFormats.c
+++ b/src/PixFormats.c
@@ -38,8 +38,8 @@ XPixmapFormatValues *XListPixmapFormats (
Display *dpy,
int *count) /* RETURN */
{
- XPixmapFormatValues *formats = (XPixmapFormatValues *)
- Xmalloc((unsigned) (dpy->nformats * sizeof (XPixmapFormatValues)));
+ XPixmapFormatValues *formats =
+ Xmalloc(dpy->nformats * sizeof (XPixmapFormatValues));
if (formats) {
register int i;