Commit 39b651a5 authored by Tomas Ogren's avatar Tomas Ogren Committed by Tomas Ögren
Browse files

"u_long" isn't portable at all..

1999-09-18  Tomas Ogren  <stric@ing.umu.se>

* plug-ins/common/tiff.c: "u_long" isn't portable at all..
parent 8bc75810
1999-09-18 Tomas Ogren <stric@ing.umu.se>
* plug-ins/common/tiff.c: "u_long" isn't portable at all..
Fri Sep 17 23:26:40 BST 1999 Nick Lamb <njl195@zepler.org>
* plug-ins/common/tiff.c: Update to version supporting 16-bit
......
......@@ -595,13 +595,13 @@ static void
load_rgba (TIFF *tif, channel_data *channel)
{
uint32 imageWidth, imageLength;
u_long *buffer;
gulong *buffer;
TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &imageWidth);
TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &imageLength);
gimp_pixel_rgn_init (&(channel[0].pixel_rgn), channel[0].drawable,
0, 0, imageWidth, imageLength, TRUE, FALSE);
buffer = g_new(u_long, imageWidth * imageLength);
buffer = g_new(gulong, imageWidth * imageLength);
channel[0].pixels = (guchar*) buffer;
if (buffer == NULL) {
g_message("TIFF Unable to allocate temporary buffer\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment