[fpc-devel] Typed addresses by default

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Oct 5 17:09:38 CEST 2006


On 5 okt 2006, at 15:41, Jonas Maebe wrote:

> Or that the code in the typeinfo unit is now broken.

typinfo unit is fixed. But there may be other similar problems  
elsewhere. I would advise to make {$t-} the default again, because  
this sort of hidden errors is hard to find unless you go over all @- 
statements in your program.

The problem was an "@shortstring_var + length(shortstring_var)"  
expression. With {$t+}, this added length(shortstring_var)*sizeof 
(shortstring_var) instead of only the length.


Jonas



More information about the fpc-devel mailing list