Hi...

my first post here, so hello everyone!

I just started to learn Clojure and I currently try to use int arrays
and bit manipulation.

All the bit manipulation works great, but if the highest bit is set, I
cannot write back the result into the array using e.g.

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

I get an error:
"Value out of range for int: 2147483648"

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?

Ciao

...Jochen


-- 
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