Fixed template overinstantiation bug

This commit is contained in:
waldemar%netscape.com 2001-09-13 01:04:22 +00:00
parent 3572f7c67c
commit 09c1606e5d

View File

@ -328,7 +328,7 @@ namespace JavaScript
// Construct a BitSet out of an array of alternating low (inclusive)
// and high (exclusive) ends of ranges of set bits.
// The array is terminated by a 0,0 range.
template<typename In> explicit BitSet(In a) {
template<typename In> explicit BitSet(const In *a) {
clear();
size_t low, high;
while (low = *a++, (high = *a++) != 0) setRange(low, high);