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
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Call anchor editor for a ...
by
CM630
[
Today
at 08:27:14 am]
Fpcupdeluxe
by
heejit
[
Today
at 07:48:16 am]
Triple Gosper Space Filli...
by
Thaddy
[
Today
at 07:17:33 am]
Sharing utilities
by
ASBzone
[
Today
at 06:56:13 am]
Program vs Simple Program...
by
ASBzone
[
Today
at 06:43:56 am]
how to create different c...
by
ALLIGATOR
[
Today
at 06:22:48 am]
Is Lazarus still serious ...
by
dbannon
[
Today
at 06:09:15 am]
replace the Executable St...
by
paule32
[
Today
at 04:25:38 am]
outsource RTTI
by
paule32
[
Today
at 04:22:43 am]
"Mario & Luigi" (1994-200...
by
paule32
[
Today
at 03:40:18 am]
Lazarus Tool for creating...
by
JuhaManninen
[
Today
at 12:39:37 am]
How to control subform: S...
by
madref
[July 13, 2025, 11:35:23 pm]
Building warnings ?
by
madref
[July 13, 2025, 11:26:32 pm]
Need help testing demonst...
by
Gustavo 'Gus' Carreno
[July 13, 2025, 10:41:44 pm]
trunc builtin function is...
by
jamie
[July 13, 2025, 10:01:41 pm]
LMath and Components 0.6....
by
cdbc
[July 13, 2025, 08:36:57 pm]
Circumvent the assignment...
by
Thaddy
[July 13, 2025, 08:31:45 pm]
activex.pp DosDateTimeToV...
by
nanobit
[July 13, 2025, 08:23:05 pm]
Searching for current wor...
by
PascalDragon
[July 13, 2025, 07:13:06 pm]
Compare two text lines an...
by
avk
[July 13, 2025, 05:38:26 pm]
ChatGPT and ObjectPascal ...
by
Joanna
[July 13, 2025, 04:17:12 pm]
Bright Colored Fans and C...
by
Boleeman
[July 13, 2025, 02:54:58 pm]
Fragmented Window Grid Pa...
by
Boleeman
[July 13, 2025, 02:47:37 pm]
About Skia graphics engin...
by
aydın
[July 13, 2025, 02:09:03 pm]
Setting up an ARM embedde...
by
Laksen
[July 13, 2025, 10:51:10 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: generic.inc Meaning of -11 values (Read 2687 times)
lagprogramming
Sr. Member
Posts: 407
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: 12317
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