~ubuntu-branches/ubuntu/trusty/python-imaging/trusty

« back to all changes in this revision

Viewing changes to libImaging/Palette.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-11-20 19:22:59 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091120192259-cmnfui5tv2jtq4xu
Tags: 1.1.7-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * The Python Imaging Library
3
 
 * $Id: Palette.c 2591 2005-12-08 21:25:29Z fredrik $
 
3
 * $Id$
4
4
 *
5
5
 * imaging palette object
6
6
 *
290
290
 
291
291
        palette->cache = (INT16*) malloc(entries * sizeof(INT16));
292
292
        if (!palette->cache) {
293
 
            ImagingError_MemoryError();
 
293
            (void) ImagingError_MemoryError();
294
294
            return -1;
295
295
        }
296
296