> I guess `truncate' would be a better choice for making an int out of it, but
> I'm not sure what that range error is really about.

I just tried the `truncate' like this:

 (defun magit-blame-split-time (unixtime)
   "Split UNIXTIME into (HIGH LOW) format expected by Emacs's time functions."
-  (list (lsh unixtime -16) (logand unixtime #xFFFF)))
+  (list (lsh (truncate unixtime) -16) (logand unixtime #xFFFF)))

But the result was similar:

> lsh: Arithmetic range error: "truncate", 1335633032.0

But thanks for suggesting the `truncate' function.

> Interesting, it looks like your git version outputs a float when mine outputs
> an int. What's your git version ?

I'm using msysGit v1.7.9, here's the output from "git version":

> git version 1.7.9.GIT

> Hopefully with your git version I can reproduce and fix.

Thanks a lot for the help.

York

Reply via email to