Re: [fpc-devel] TDateTime issue.

2024-04-01 Thread Werner Pamler via fpc-devel
Am 01.04.2024 um 16:19 schrieb Marco van de Voort via fpc-devel: Op 01/04/2024 om 12:30 schreef Werner Pamler via fpc-devel: Am 31.03.2024 um 11:55 schrieb Pascal Pype via fpc-devel: There seems to be a bug in the TDateTime data type. When the time difference between two TDateTime variables i

Re: [fpc-devel] Raspberry Pi Pico: Heapsize is initialized with wrong value

2024-04-01 Thread Florian Klämpfl via fpc-devel
On 01.04.24 22:33, Michael Ring via fpc-devel wrote: I am using heapmgr but with trunk compiler the value of __heapsize is plain wrong (and way too big) When I compile my code with my old compiler for pico all is fine, when I debug into heapmgr I see that __heapsize is set correctly to 16384 b

Re: [fpc-devel] Raspberry Pi Pico: Heapsize is initialized with wrong value

2024-04-01 Thread Michael Ring via fpc-devel
PR: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/638 Am 01.04.24 um 22:33 schrieb Michael Ring via fpc-devel: I am using heapmgr but with trunk compiler the value of __heapsize is plain wrong (and way too big) When I compile my code with my old compiler for pico all is fine

[fpc-devel] Raspberry Pi Pico: Heapsize is initialized with wrong value

2024-04-01 Thread Michael Ring via fpc-devel
I am using heapmgr but with trunk compiler the value of __heapsize is plain wrong (and way too big) When I compile my code with my old compiler for pico all is fine, when I debug into heapmgr I see that __heapsize is set correctly to 16384 based on this setting: program spi_st7789; {$MODE OB

Re: [fpc-devel] TDateTime issue.

2024-04-01 Thread Marco van de Voort via fpc-devel
Op 01/04/2024 om 17:23 schreef Werner Pamler via fpc-devel: Yes, you are right. Now I see that it works, after updating my fixes (which I should have done earlier). Rule of thumb, I merged most fixes in December, except fcl-web/passrc/json/pas2js and some associated packages. Some later revs

Re: [fpc-devel] TDateTime issue.

2024-04-01 Thread Werner Pamler via fpc-devel
Am 01.04.2024 um 16:19 schrieb Marco van de Voort via fpc-devel: Op 01/04/2024 om 12:30 schreef Werner Pamler via fpc-devel: Am 31.03.2024 um 11:55 schrieb Pascal Pype via fpc-devel: There seems to be a bug in the TDateTime data type. When the time difference between two TDateTime variables

Re: [fpc-devel] TDateTime issue.

2024-04-01 Thread Marco van de Voort via fpc-devel
Op 01/04/2024 om 12:30 schreef Werner Pamler via fpc-devel: Am 31.03.2024 um 11:55 schrieb Pascal Pype via fpc-devel: There seems to be a bug in the TDateTime data type. When the time difference between two TDateTime variables is just one millisecond, the compareDateTime function returns 0 (equ

Re: [fpc-devel] TDateTime issue.

2024-04-01 Thread Werner Pamler via fpc-devel
Am 31.03.2024 um 11:55 schrieb Pascal Pype via fpc-devel: There seems to be a bug in the TDateTime data type. When the time difference between two TDateTime variables is just one millisecond, the compareDateTime function returns 0 (equality) rather than the expected -1 or 1 (different). It is f

Re: [fpc-devel] TDateTime issue.

2024-04-01 Thread Marco van de Voort via fpc-devel
Op 31/03/2024 om 11:55 schreef Pascal Pype via fpc-devel: My freepascal version is: 3.0.0. The platform is: Slackware 14.2 x86_64. Please try a more recent version (and preferably even the fixes version via FPCDELUXE). Datetime support has detail fixes every release, and 3.0.0 is 9 years