https://kotlinlang.org logo
Title
s

supaham

08/25/2018, 5:15 PM
Hey, I'm working with android, when I try supply a 0xAARRGGBB number, with the alpha as FF, it requires me to cast to integer explicitly to apply it to an integer property, is there a way around that, or do I just keep casting to int?
t

trevjones

08/25/2018, 5:17 PM
put it in as a color resource and use the normal android mechanisms?
s

supaham

08/25/2018, 5:17 PM
Alright.
k

karelpeeters

08/25/2018, 5:18 PM
Out of curiosity, what type does it infer instead?
s

supaham

08/25/2018, 5:18 PM
Long
Which does make sense, if im not mistaken toInt would just wrap it to negative
t

trevjones

08/25/2018, 5:19 PM
1.3 will make it better with the unsigned types
s

supaham

08/25/2018, 5:19 PM
😮
k

karelpeeters

08/25/2018, 5:27 PM
Ah right, that does make sense.