Browse Source

Fix assertion with incorrect limit on age sequence prefix.

tickets/21/21/1
rarified 3 years ago
parent
commit
7ad6edd4d4
  1. 2
      Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp

2
Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp

@ -316,7 +316,7 @@ plLocation plAgeDescription::CalcPageLocation( const char *page ) const
{ {
// Combine our sequence # together // Combine our sequence # together
Int32 combined; Int32 combined;
hsAssert(abs(fSeqPrefix) < 0xFF, "Age sequence prefex is out of range!"); // sequence prefix can NOT be larger or equal to 1-byte max value hsAssert(abs(fSeqPrefix) < 0x7FFF, "Age sequence prefex is out of range!"); // sequence prefix can NOT be larger or equal to 2-byte max value
UInt32 suffix = ap->GetSeqSuffix(); UInt32 suffix = ap->GetSeqSuffix();
hsAssert(suffix <= 0xFFFF, "Page sequence number is out of range!"); // page sequence number can NOT be larger then 2-byte max value hsAssert(suffix <= 0xFFFF, "Page sequence number is out of range!"); // page sequence number can NOT be larger then 2-byte max value
if( fSeqPrefix < 0 ) // we are a global age if( fSeqPrefix < 0 ) // we are a global age

Loading…
Cancel
Save