Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LargeFile.pos_in #7984

Closed
vicuna opened this issue Jan 3, 2003 · 2 comments
Closed

LargeFile.pos_in #7984

vicuna opened this issue Jan 3, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 3, 2003

Original bug ID: 1511
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Hideo Bannai
Version: 3.06
OS: Debian Linux (testing, x86)
Submission from: oteaa151.246.ne.jp (61.206.226.151)

LargeFile.pos_in seems to return a negative value when the file
pointer exceeds size of 31 bits.

My friend says the problem is probably in
ocaml-3.06/byterun/io.c
where
CAMLexport long pos_in(struct channel *channel)
+CAMLexport file_offset pos_in(struct channel *channel)

@vicuna
Copy link
Author

vicuna commented Jan 6, 2003

Comment author: administrator

LargeFile.pos_in seems to return a negative value when the file
pointer exceeds size of 31 bits.
My friend says the problem is probably in
ocaml-3.06/byterun/io.c
where
CAMLexport long pos_in(struct channel *channel)
+CAMLexport file_offset pos_in(struct channel *channel)

Your friend is 100% correct. This is fixed in the development
sources. Thanks for reporting this bug.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jan 6, 2003

Comment author: administrator

Fixed 2003-01-06 by XL

@vicuna vicuna closed this as completed Jan 6, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant