Re: Byte order bug in token.c:send_deflated_token ?

2004-01-06 Thread Wayne Davison
On Mon, Jan 05, 2004 at 04:49:27PM -0500, Jay Fenlason wrote: > I think what it should do is > temp_byte = (char)(n&0xFF); > write_batch_delta_file(&temp_byte,sizeof(char)); Yes, the other code was wrong. I've checked in a fix to CVS. Thanks for pointing this out. ..wayne.. -- To unsubscribe

Byte order bug in token.c:send_deflated_token ?

2004-01-05 Thread Jay Fenlason
I was looking at send_deflated_token() when I noticed that it does int n, r; ... write_batch_delta_file((char *)&n,sizeof(char)); temp_byte = (char)(n >> 8); write_batch_delta_file(&temp_byte,sizeof(temp_byte)); Now on a little-endian machine &n will equal the address of the low-order byte of