Is it backwards compatible to change an integer from unsigned to signed?
Skip to first unread message
Vitali Lovich
unread,
Apr 16, 2020, 7:45:19 PM4/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cap'n Proto
If I change UInt64 to Int64 provided that I know I never sent a value that's > 2^63 - 1 ? Even if I did am I correct that it's the equivalent behaviour of treating it equivalent to a C++ cast?
Ian Denhardt
unread,
Apr 16, 2020, 8:43:09 PM4/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cap'n Proto, Vitali Lovich
Yes, this is correct.
Quoting Vitali Lovich (2020-04-16 19:45:05)
> If I change UInt64 to Int64 provided that I know I never sent a value
> that's > 2^63 - 1 ? Even if I did am I correct that it's the equivalent
> behaviour of treating it equivalent to a C++ cast?
>