Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
generic.inc Meaning of -11 values
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
How to connect to MariaDb...
by
Thaddy
[
Today
at 07:43:55 pm]
Error when opening a proj...
by
Tomu
[
Today
at 06:45:33 pm]
Isn’t this funny?
by
dsiders
[
Today
at 06:11:01 pm]
Slow app start on M5 MacB...
by
Thaddy
[
Today
at 03:36:57 pm]
Solpage
by
munair
[
Today
at 01:47:30 pm]
Need help with fphttpserv...
by
Thaddy
[
Today
at 12:58:30 pm]
Freepascal
by
Thaddy
[
Today
at 12:39:23 pm]
Lazarus interface to Rexx...
by
Thaddy
[
Today
at 12:38:10 pm]
Parsing error?
by
Thaddy
[
Today
at 12:02:02 pm]
Many recent books on Laza...
by
Thaddy
[
Today
at 11:52:49 am]
is there PDS reader/expor...
by
cdbc
[
Today
at 10:55:30 am]
Peculiarities in the EXE ...
by
marcov
[
Today
at 09:57:51 am]
Conscious Artificial Inte...
by
schuler
[July 14, 2026, 11:40:27 pm]
Lazarus Bugfix Release 4....
by
Martin_fr
[July 14, 2026, 10:55:23 pm]
equivalent to C/C++ "offs...
by
Thaddy
[July 14, 2026, 07:37:23 pm]
LazSWatch - a serial port...
by
CM630
[July 14, 2026, 06:11:52 pm]
MarcoV, please contact. ...
by
jbthiel
[July 14, 2026, 05:35:26 pm]
lazbuild vs IDE: PPU chec...
by
Martin_fr
[July 14, 2026, 05:30:50 pm]
OpenDocument('Filename') ...
by
cdbc
[July 14, 2026, 12:45:35 pm]
TCollection wiki entry
by
Thaddy
[July 14, 2026, 10:56:03 am]
Install new .deb over exi...
by
Thaddy
[July 14, 2026, 07:16:45 am]
I have made some progress...
by
egsuh
[July 14, 2026, 05:36:50 am]
Lazarus Main not building...
by
dbannon
[July 14, 2026, 03:01:32 am]
[SOLVED] WASM import erro...
by
lebao3105
[July 13, 2026, 05:51:47 pm]
Discipline your AI coding...
by
Weiss
[July 13, 2026, 04:37:42 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: generic.inc Meaning of -11 values (Read 2872 times)
lagprogramming
Sr. Member
Posts: 409
generic.inc Meaning of -11 values
«
on:
November 09, 2015, 10:39:04 pm »
I've been looking at generic.inc file and I've seen some "-11" ocurrences. Is it a copy/paste bug or there is a meaning for the eleven values?
I ask because the file contains both "if (Count>4*sizeof(ptruint)-11)" and "if Count>4*sizeof(ptruint)-1 then".
For quick reference
http://svn.freepascal.org/svn/fpc/trunk/rtl/inc/generic.inc
Logged
marcov
Administrator
Hero Member
Posts: 12947
FPC developer.
Re: generic.inc Meaning of -11 values
«
Reply #1 on:
November 09, 2015, 11:03:18 pm »
My guess is 1 less than 3*sizeof(integer)=12
The 1 less because of > instead of >=
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
generic.inc Meaning of -11 values
TinyPortal
© 2005-2018