Skip to content
Snippets Groups Projects
Commit 3de031c9 authored by Gaius Mulley's avatar Gaius Mulley
Browse files

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: default avatarGaius Mulley <gaiusmod2@gmail.com>
parent b8f54195
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment