https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113559

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>:

https://gcc.gnu.org/g:3de031c96f28f19a68ea2080260d8fd2c78828ee

commit r14-8389-g3de031c96f28f19a68ea2080260d8fd2c78828ee
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Wed Jan 24 13:11:46 2024 +0000

    PR modula2/113559 FIO.mod lseek requires cssize_t rather than longint

    This patch fixes a bug in gcc/m2/gm2-libs/FIO.mod which failed to cast the
    whence parameter into the correct type.  The patch casts the whence
    parameter for lseek to SYSTEM.CSSIZE_T.

    gcc/m2/ChangeLog:

            PR modula2/113559
            * gm2-libs/FIO.mod (SetPositionFromBeginning): Convert pos into
            CSSIZE_T during call to lseek.
            (SetPositionFromEnd): Convert pos into CSSIZE_T during call to
            lseek.

    Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>

Reply via email to