[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unix.gmtime failure on Ubuntu (IA64)



Hello,

On Mon, Dec 10, 2007 at 01:42:16AM -0600, Peter Groves wrote:

> It compiled without problems on the Ubuntu machine but then I got this error message at runtime:
> Fatal error: exception Unix.Unix_error(12, "gmtime", "")
> 
> An abbreviation of the offending code looks something like this:
>  let reallySmallFloat = -1.0 * max_float in (* a very large magnitude negative number*)
>  let reallySmallInt64 = Int64.of_float reallySmallFloat in (* truncated to int64 *)
>  let smallestTimeFlt = Int64.to_float reallySmallInt64 in (* back to float *)
>  let smallestTime = Unix.gmtime smallestTimeFlt

I get the same error on my amd64 machine (debian/sid with ocaml 3.10.0-8)
but I am not sure that this is a bug. I googled a bit around and got 
the impression that unix time is supposed to be a positive value.

-Ralf.



Reply to: