Received: by cthulhu.engr.sgi.com (940707.SGI.8.6.9/911001.SGI)
	for tiff-list id PAA26855; Fri, 26 Aug 1994 15:19:05 -0700
Return-Path: <owner-tiff>
Received: from sgi.sgi.com by cthulhu.engr.sgi.com via ESMTP (940707.SGI.8.6.9/911001.SGI)
	for <tiff-relay@cthulhu.engr.sgi.com> id PAA26827; Fri, 26 Aug 1994 15:19:00 -0700
Received: from pixar.com by sgi.sgi.com via SMTP (940627.SGI.8.6.9/910110.SGI)
	for <tiff@sgi.com> id PAA18928; Fri, 26 Aug 1994 15:18:58 -0700
Received: from roger.pixar.com by pixar.com with SMTP id AA14051
  (5.65c/IDA-1.4.4 for <tiff@sgi.com>); Fri, 26 Aug 1994 15:19:11 -0700
Received: by roger.pixar.com (/\==/\ Smail3.1.25.1 #25.26)
	id <m0qe9bm-0005CiC@roger.pixar.com>; Fri, 26 Aug 94 15:18 PDT
Message-Id: <m0qe9bm-0005CiC@roger.pixar.com>
Date: Fri, 26 Aug 94 15:18 PDT
From: mccoy@pixar.com (Dan McCoy)
To: steriti@dragon.cpe.uml.edu, tiff@sgi.sgi.com
Subject: Re:  alpha bug report
Sender: owner-tiff@sgi.sgi.com
Precedence: bulk

>I'm having trouble with the alpha version,

>void ReadTIFF ( char *filename, Matrix *in )
>{
>  TIFF       *tif;
>  char       *buf;
>  int       row, column;
>  tsample_t  sample;
>  unsigned long  imagelength, imagewidth;

Longs are 64 bits on the alpha, not 32.  (at least under OSF)
Try:
   uint32 imagelength, imagewidth;

uint32 should be defined as unsigned int on the alpha
(you should double check your version)

>  tif = TIFFOpen( filename, "r");
>  TIFFGetField ( tif, TIFFTAG_IMAGELENGTH, &imagelength);
>  TIFFGetField ( tif, TIFFTAG_IMAGEWIDTH,  &imagewidth );


Dan McCoy        Pixar      mccoy@pixar.com

