Fix 04034: All sets in viper.c: [debug] Assert in Debug build

This commit is contained in:
Aaron Giles 2010-09-16 13:54:38 +00:00
parent acc300e960
commit c181febddc

View File

@ -4374,7 +4374,7 @@ void handler_entry::configure_subunits(UINT64 handlermask, int handlerbits)
// compute the maximum possible subunits
int maxunits = m_datawidth / handlerbits;
assert(maxunits > 1);
assert(maxunits < ARRAY_LENGTH(m_subshift));
assert(maxunits <= ARRAY_LENGTH(m_subshift));
// walk the handlermask to find out how many we have
m_subunits = 0;