Implicit types are evil. Add PRUint32.

r=mccabe
This commit is contained in:
braddr%puremagic.com 2000-04-16 00:21:07 +00:00
Родитель 716576a3fd
Коммит 3d8106eb54
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -327,7 +327,7 @@ NS_IMETHODIMP
xpcarraytest::GetStrings(PRUint32 *count, char ***str)
{
const static char *strings[] = {"one", "two", "three", "four"};
const static scount = sizeof(strings)/sizeof(strings[0]);
const static PRUint32 scount = sizeof(strings)/sizeof(strings[0]);
if(mReceiver)
return mReceiver->GetStrings(count, str);
@ -335,7 +335,7 @@ xpcarraytest::GetStrings(PRUint32 *count, char ***str)
char** out = (char**) nsAllocator::Alloc(scount * sizeof(char*));
if(!out)
return NS_ERROR_OUT_OF_MEMORY;
for(int i = 0; i < scount; ++i)
for(PRUint32 i = 0; i < scount; ++i)
{
out[i] = (char*) nsAllocator::Clone(strings[i], strlen(strings[i])+1);
// failure unlikely, leakage foolishly tolerated in this test case