Hi,

On 5 Nov., 13:04, Jochen <joc...@riekhof.de> wrote:

> (aset-int (make-array Integer/TYPE 1) 0 0x80000000)
>
> I found that 0x80000000 is propagated to a long (other than java which
> on 8 character hex literals keeps an int) so I try to cast using (int
> 0x80000000) as possible in Java but still the error occurs. Any ideas
> what I can do here?

It sounds as if you use 1.3-alpha-something. The problem is that aset-
int is a function. So your int gets boxed again to a Long. Just use
aset. It's also a function but is usually inlined, so you pass
primitive directly.

(aset (make-array Integer/TYPE 1) 0 (int 0x80000000))

This should work, although I can't verify at the moment.

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to