The Dink Network

Reply to Maybe a bug

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 6th 2005, 12:08 PM
pillbug.gif
Drink
Peasant He/Him Chile
Don't drink 
In Dinkvar.h, "void decompress_nocomp":

if ((c = getc(in)) > 255)
fread(pair,2,c-128,in);
else
{
if (c == '\r') c = '\n';
if (c == 9) c = ' ';

strchar(cbuf,c);
}

in "(c = getc(in)) > 255" it reads one character from a file. "c" is short. Then, c > 255 will never occur, right?

Or there is sense?