Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread waldo kitty
On 1/22/2014 5:39 PM, Frederic Da Vitoria wrote: 2014/1/22 waldo kitty mailto:wkitt...@windstream.net>> the string type is/was a 256 character array with the 0th (zero-th) element containing the length of the string... this allowed one to immediately know how many characters to read

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Frederic Da Vitoria
2014/1/22 waldo kitty > the string type is/was a 256 character array with the 0th (zero-th) > element containing the length of the string... this allowed one to > immediately know how many characters to read at once... it was much faster > than iterating thru the array looking for a nul byte as d

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread waldo kitty
On 1/22/2014 1:00 PM, Jürgen Hestermann wrote: Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delp

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Sven Barth
On 22.01.2014 19:00, Jürgen Hestermann wrote: Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delph

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Florian Klämpfl
Am 22.01.2014 19:00, schrieb Jürgen Hestermann: > > Am 2014-01-22 07:41, schrieb leledumbo: >> Jürgen Hestermann wrote >>> Realy? >>> But why that? >>> It cannot be negative. >>> Using integer instead of unsigned values reduces the possible (positive) >>> range >>> and produces such illogical (to

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Jürgen Hestermann
Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delphi compatibility and maximum data size limitatio

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread leledumbo
Jürgen Hestermann wrote > Realy? > But why that? > It cannot be negative. > Using integer instead of unsigned values reduces the possible (positive) > range > and produces such illogical (to me) compiler warnings. Delphi compatibility and maximum data size limitation AFAIK (2 GB). -- View this

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread Jürgen Hestermann
Am 2014-01-21 18:43, schrieb Howard Page-Clark: On 21/01/2014 17:33, Jürgen Hestermann wrote: I always wondered why I get a compiler message for the following code ... if i+length(M) Length is declared in the compiler/RTL to return an integer result. Realy? But why that? It cannot be negati

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread Howard Page-Clark
On 21/01/2014 17:33, Jürgen Hestermann wrote: I always wondered why I get a compiler message for the following code ... if i+length(M) Length is declared in the compiler/RTL to return an integer result. Howard ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread Jürgen Hestermann
I always wondered why I get a compiler message for the following code snipped: function Match(M,F : UTF8String) : boolean; var i : Cardinal; ... if i+length(M)___ fpc-pascal