> On 31 July 2011 15:13, Olivier Guilyardi <list@samalyse.com
> <mailto:list@samalyse.com>> wrote:
>
> How comes Resources.getColor() returns an int? This can't hold the
> maximum value
> of 0xFFFFFFFF because Java int is signed.
>
> Java does not offer "unsigned" so you're right, you will get negative
> value if you i.e. Log.i(() it, but that's not really important as it's
> just matter of *interpretation* of the value. All bits of 0xFFFFFFFF are
> the same no matter if you *treat* it as signed or unsigned int and this
> is what matters.
Ok, thanks, let's call that a subtlety then.
--
Olivier
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment