Fix win32 build. (nw)

This commit is contained in:
couriersud 2015-05-26 16:39:37 +02:00
parent 9f6333e797
commit 1255f9aa63
2 changed files with 4 additions and 7 deletions

View File

@ -188,7 +188,7 @@ ATTR_COLD void truthtable_desc_t::setup(const char **truthtable, UINT32 disabled
tindex[j] = k;
}
help(0, inout, 0 , val, tindex);
help(0, inout, 0 , val, tindex.data());
ttline = pstring(truthtable[0]);
truthtable++;
}

View File

@ -51,18 +51,15 @@ public:
m_list = NULL;
}
ATTR_HOT /* inline */ operator _ListClass * () { return m_list; }
ATTR_HOT /* inline */ operator const _ListClass * () const { return m_list; }
/* using the [] operator will not allow gcc to vectorize code because
* basically a pointer is returned.
* array works around this.
*/
ATTR_HOT /* inline */ _ListClass *array() { return m_list; }
ATTR_HOT /* inline */ _ListClass *data() { return m_list; }
ATTR_HOT /* inline */ _ListClass& operator[](const std::size_t index) { return m_list[index]; }
ATTR_HOT /* inline */ const _ListClass& operator[](const std::size_t index) const { return m_list[index]; }
ATTR_HOT /* inline */ _ListClass& operator[](std::size_t index) { return m_list[index]; }
ATTR_HOT /* inline */ const _ListClass& operator[](std::size_t index) const { return m_list[index]; }
ATTR_HOT /* inline */ std::size_t size() const { return m_capacity; }