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

int_of_string "a" #2615

Closed
vicuna opened this issue Nov 19, 2000 · 4 comments
Closed

int_of_string "a" #2615

vicuna opened this issue Nov 19, 2000 · 4 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 19, 2000

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

Bug description

Full_Name: Florian Douetteau
Version: 3.00
OS: Linux
Submission from: marsu.ens.fr (129.199.131.41)

external int_of_string : string -> int = "int_of_string"
(* Convert the given string to an integer.
The string is read in decimal (by default) or in hexadecimal,
octal or binary if the string begins with [0x], [0o] or [0b]
respectively.

int_of_string "b";;

  • : int = 11

int_of_string "a";;

  • : int = 10

...

@vicuna
Copy link
Author

vicuna commented Nov 20, 2000

Comment author: administrator

int_of_string "b";;

  • : int = 11

C'est un bug connu de la version 3.00, qui est corrigé dans la version
de développement.

Merci de l'avoir signalé,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Nov 20, 2000

Comment author: administrator

Salut,

On Mon, Nov 20, 2000 at 12:00:53PM +0100, Xavier.Leroy@inria.fr wrote:

int_of_string "b";;

  • : int = 11

C'est un bug connu de la version 3.00, qui est corrigé dans la version
de développement.

Je crains que non.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Nov 20, 2000

Comment author: administrator

int_of_string "b";;

  • : int = 11

C'est un bug connu de la version 3.00, qui est corrigé dans la version
de développement.

Je crains que non.

En effet, le premier chiffre est traité spécialement, et la correction
n'y avait pas été appliquée. C'est fait maintenant.

  • Xavier

@vicuna
Copy link
Author

vicuna commented Nov 20, 2000

Comment author: administrator

Fixed 2000-11-20 by Xavier (related to #2548).

@vicuna vicuna closed this as completed Nov 20, 2000
@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