12-31-2004, 09:06 PM
You shouldn't be allowed to declare fixed-len strings on function arguments and function results.. fixed - Von seems to read my mind, i knew that was possible and didn't fix it coz well, i thought nobody would find it out so early :P
subxero: actually, you found another bug that i-know-it-could-be-wrong-but-never-tested-it, qword fields (8 bytes long), were being aligned to qword boundary (i thought double's were aligned that way..), they should be aligned to dword boundary, so that WIN32_FIND_DATA will be wrong, 'cause the FILETIME fileds (all 8-byte longs). Fixed, will be on the next release - or already on CVS if you want to compile yourself. Btw, you could do "Type WIN32_FIND_DATA Field=1" by now to "fix" it.
Sterling: there's no floor() function on libc but for doubles (only C++ has overlapped ones), so INT() maps to double no matter the source kind, float or double.
Btw, happy new year, cyaz..
subxero: actually, you found another bug that i-know-it-could-be-wrong-but-never-tested-it, qword fields (8 bytes long), were being aligned to qword boundary (i thought double's were aligned that way..), they should be aligned to dword boundary, so that WIN32_FIND_DATA will be wrong, 'cause the FILETIME fileds (all 8-byte longs). Fixed, will be on the next release - or already on CVS if you want to compile yourself. Btw, you could do "Type WIN32_FIND_DATA Field=1" by now to "fix" it.
Sterling: there's no floor() function on libc but for doubles (only C++ has overlapped ones), so INT() maps to double no matter the source kind, float or double.
Btw, happy new year, cyaz..
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php