From p.dalgaard at biostat.ku.dk  Sun Jun  5 02:17:07 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Sun Jun  5 02:17:17 2005
Subject: [Rd] fix for save()'ing RAW on PPC (and other big endian
	platforms)
In-Reply-To: <CA8EF40B-2434-4F54-ACAC-C411249384D2@stat.harvard.edu>
References: <CA8EF40B-2434-4F54-ACAC-C411249384D2@stat.harvard.edu>
Message-ID: <x23brxr724.fsf@turmalin.kubism.ku.dk>

Byron Ellis <ellis@stat.harvard.edu> writes:

> OutByte should take a byte, not an int. Writing the first byte of an
> int is only going to work on little endian systems.
> 
> serialize.c:262
> -static void OutByte(R_outpstream_t stream, int i)
> +static void OutByte(R_outpstream_t stream, Rbyte i)

Thanks for tracking this down.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] fix for save()'ing RAW on PPC (and other big endian platforms)
Peter Dalgaard