You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1260 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
As far as I understand, ``sscanf "%x"'' is supposed to convert
strings of the form [0-9a-f]+ to decimal, not strings of the form
0x[0-9a-f]+. However :
Scanf.sscanf "a" "%x" (fun x -> x);;
Exception:
Scanf.Scan_failure "scanf: bad input at char number 1: int_of_string".
Same bug applies for %lx, and possibly for %lo...
The text was updated successfully, but these errors were encountered:
As far as I understand, ``sscanf "%x"'' is supposed to convert
strings of the form [0-9a-f]+ to decimal, not strings of the form
0x[0-9a-f]+. However :
Scanf.sscanf "a" "%x" (fun x -> x);;
Exception:
Scanf.Scan_failure "scanf: bad input at char number 1: int_of_string".
Same bug applies for %lx, and possibly for %lo...
Thanks for reporting this bug. It is now fixed in the working
sources.
Original bug ID: 1260
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Berke Durak
Version: 3.04+15
OS: OpenBSD 2.9
Submission from: mix-montsouris-110-3-84.abo.wanadoo.fr (193.248.190.84)
As far as I understand, ``sscanf "%x"'' is supposed to convert
strings of the form [0-9a-f]+ to decimal, not strings of the form
0x[0-9a-f]+. However :
Scanf.sscanf "a" "%x" (fun x -> x);;
Exception:
Scanf.Scan_failure "scanf: bad input at char number 1: int_of_string".
Same bug applies for %lx, and possibly for %lo...
The text was updated successfully, but these errors were encountered: