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
TCHATGPT — An Artificial ...
by
schuler
[
Today
at 01:44:11 pm]
Ellipses Function?
by
cdbc
[
Today
at 01:43:33 pm]
Using callback
by
Zvoni
[
Today
at 01:26:38 pm]
FPC Unleashed (async/awai...
by
Thaddy
[
Today
at 12:46:26 pm]
Rounding issues (only wit...
by
Khrys
[
Today
at 11:38:55 am]
Lazarus for Windows on aa...
by
szlbz
[
Today
at 10:27:29 am]
Playing with GTK-server
by
Roland57
[
Today
at 10:11:06 am]
[New Component] ExtTabCtr...
by
wp
[
Today
at 10:04:27 am]
Some Lazarus documentatio...
by
dsiders
[
Today
at 09:40:28 am]
Slow app start on M5 MacB...
by
Thaddy
[
Today
at 06:34:10 am]
Review from FreePascal
by
n7800
[
Today
at 05:27:49 am]
Network drop and firewall
by
kupferstecher
[July 21, 2026, 07:11:07 pm]
How to check my own certi...
by
LeP
[July 21, 2026, 05:04:49 pm]
How can I get names of CO...
by
Thaddy
[July 21, 2026, 04:55:08 pm]
Accessing VRAM memory wit...
by
Thaddy
[July 21, 2026, 01:31:19 pm]
Fixed an RV32ec compiler ...
by
ccrause
[July 21, 2026, 12:04:05 pm]
[SOLVED} Copying existing...
by
Davo
[July 21, 2026, 11:59:45 am]
TDWEdit
by
Ed78z
[July 21, 2026, 09:53:10 am]
Elite Arcade
by
Zvoni
[July 21, 2026, 08:17:20 am]
Which quantized model wor...
by
LeP
[July 20, 2026, 10:34:07 pm]
PasFLTK - Binding for FLT...
by
Dibo
[July 20, 2026, 10:26:31 pm]
[Closed]Indy10 hangs the ...
by
marcov
[July 20, 2026, 03:52:59 pm]
Lazarus components
by
threedslider
[July 20, 2026, 02:37:23 pm]
Many recent books on Laza...
by
threedslider
[July 20, 2026, 02:27:45 pm]
[Solved]Setting the CURSO...
by
jamie
[July 20, 2026, 11:33:52 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: generic.inc Meaning of -11 values (Read 2873 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: 12959
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