Fixed template overinstantiation bug

This commit is contained in:
waldemar%netscape.com 2001-09-13 01:04:22 +00:00
Родитель a546a10e96
Коммит e3053377cb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);