RTEMS support

This commit is contained in:
Matej Sekoranja
2011-09-13 09:47:10 +02:00
parent c762d94f7a
commit 9e2586fd51
2 changed files with 3 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ namespace epics { namespace pvData {
uint32 length = (nbits <= 0) ? 1 : wordIndex(nbits-1) + 1;
if (words) delete[] words;
words = new uint64[length];
bzero(words, sizeof(uint64)*length);
memset(words, 0, sizeof(uint64)*length);
wordsLength = length;
}
@@ -60,7 +60,7 @@ namespace epics { namespace pvData {
// create and copy
uint64* newwords = new uint64[wordsRequired];
bzero(newwords, sizeof(uint64)*wordsRequired);
memset(newwords, 0, sizeof(uint64)*wordsRequired);
memcpy(newwords, words, sizeof(uint64)*wordsLength);
if (words) delete[] words;
words = newwords;