TridenT - 2008-04-03

Anthony,

I've fixed an error in JcfUnicodeFiles.pas (Commited in SVN reision 604)
When compiling this file with 'Range check error' (which is helpfull!), a Range Check error exception is thrown when reading Unicode files (BE-UCS4).

The line is here :
  lo := value;

lo is type word.
value if type longword.
=> no implicit cast = error when value > 0xFFFFFFFF

The fix is :
  lo := (value and $0000FFFF); // Prevent Range check error by converting to a word

I've commited the modifications and check that everythings work after this.
Hope this will help.

TridenT