[sil-serialization] Use a variable width integer instead of a fixed width integer for the max number of specialized attributes

It is just to make it more future-proof and avoid overflows we've seen recently.
Thanks Jordan who suggested this change.
This commit is contained in:
Roman Levenstein
2017-08-30 17:09:04 -07:00
parent 53a5389daa
commit a74c66794b
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
const uint16_t VERSION_MINOR = 360; // Last change: '__consuming'
const uint16_t VERSION_MINOR = 361; // Last change: BCVBR for specialized attributes.
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;