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: 4473 Reporter: sol Status: closed (set by @garrigue on 2008-01-18T03:54:19Z) Resolution: fixed Priority: normal Severity: crash Version: 3.10.1 Fixed in version: 3.10+dev Category: ~DO NOT USE (was: OCaml general) Monitored by:@yakobowski
Bug description
Example:
class xyz =
object
method nth : 'a . int -> 'a array -> 'a = fun x a -> a.(x mod Array.length a)
end
Running this with an array of string, int or options... works fine. But an array of float causes a segfault.
Tested in versions: 3.09.3 on mac osx 10
and 3.10.0 on windows xp.
However the following works fine:
let nth : int -> 'a array -> 'a = fun x a -> a.(x mod Array.length a)
The text was updated successfully, but these errors were encountered:
Original bug ID: 4473
Reporter: sol
Status: closed (set by @garrigue on 2008-01-18T03:54:19Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.10.1
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @yakobowski
Bug description
Example:
class xyz =
object
method nth : 'a . int -> 'a array -> 'a = fun x a -> a.(x mod Array.length a)
end
Running this with an array of string, int or options... works fine. But an array of float causes a segfault.
Tested in versions: 3.09.3 on mac osx 10
and 3.10.0 on windows xp.
However the following works fine:
let nth : int -> 'a array -> 'a = fun x a -> a.(x mod Array.length a)
The text was updated successfully, but these errors were encountered: