On Tue, 19 May 2015, Serguei TARASSOV wrote:
Hello,
Is it normal that TFPHashList cannot find an item by name if the pointer is
nil?
However, the item is stored in the list.
FPC 2.6.4, both Windows and Linux versions.
program project1;
uses
Contnrs;
var
List: TFPHashList;
begin
List
On 05/20/2015 07:11 AM, Michael Van Canneyt wrote:
On Tue, 19 May 2015, Serguei TARASSOV wrote:
Hello,
Is it normal that TFPHashList cannot find an item by name if the pointer is nil?
However, the item is stored in the list.
FPC 2.6.4, both Windows and Linux versions.
program project1;
In our previous episode, Peter said:
It should work if Truncate64 is used instead of Truncate.
I suggest its a bug, albeit probably a wishlist one.
http://man7.org/linux/man-pages/man2/ftruncate.2.html
ftruncate64 is already used for 32-bit CPUs, ftruncate for 64-bit cpus
You can get info
On 20/05/15 16:36, Marco van de Voort wrote:
In our previous episode, Peter said:
It should work if Truncate64 is used instead of Truncate.
I suggest its a bug, albeit probably a wishlist one.
http://man7.org/linux/man-pages/man2/ftruncate.2.html
ftruncate64 is already used for 32-bit CPUs,
In our previous episode, Peter said:
Thanks for that. So is it a bug then? Why is 64-bit not using ftruncate64?
I'm no linux expert, but I assume because it is only for 32-bit. On 64-bit,
off_t already is 64-bit, so the posix template matches 1:1, and there is no
need for another function.