uint32 in ValueTree


#1

Hi
What is the best way to store a uin32 in a valuetree?
It works by casting to int64, but then I get conversion warnings.
There is probably some obvious solution that I have not thought about :slight_smile:


#2

Yeah, just cast to int or int64.


#3

Thank you for the reply. Yes, that works but then I get warnings when converting it back, while loading data from the tree.
This is of course safe, I just want to get rid of the warnings…


#4

So just add a cast to avoid the warning. As long as you know what you’re doing, it’s a valid conversion.