write now takes ints instead of unsigned ints

This commit is contained in:
mjudge%netscape.com 1998-12-16 18:43:13 +00:00
Родитель 084f85b760
Коммит 8988ae7888
3 изменённых файлов: 4 добавлений и 4 удалений

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

@ -233,7 +233,7 @@ nsTransactionItem::GetNumberOfRedoItems(PRInt32 *aNumItems)
nsresult
nsTransactionItem::Write(nsIOutputStream *aOutputStream)
{
PRUint32 len;
PRInt32 len;
if (mTransaction)
mTransaction->Write(aOutputStream);

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

@ -516,7 +516,7 @@ nsTransactionManager::PeekRedoStack(nsITransaction **aTransaction)
nsresult
nsTransactionManager::Write(nsIOutputStream *aOutputStream)
{
PRUint32 len;
PRInt32 len;
if (!aOutputStream)
return NS_ERROR_NULL_POINTER;

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

@ -252,7 +252,7 @@ public:
NS_DECL_ISUPPORTS
NS_IMETHOD Close(void) {return NS_OK;}
NS_IMETHOD Write(const char *str, PRUint32 offset, PRUint32 len, PRUint32 *wcnt)
NS_IMETHOD Write(const char *str, PRInt32 offset, PRInt32 len, PRInt32 *wcnt)
{
*wcnt = fwrite(&str[offset], 1, len, stdout);
fflush(stdout);
@ -448,7 +448,7 @@ public:
virtual nsresult Write(nsIOutputStream *aOutputStream)
{
char buf[256];
PRUint32 amt;
PRInt32 amt;
sprintf(buf, "Transaction: %d - 0x%.8x\n", mVal, this);
return aOutputStream->Write(buf, 0, strlen(buf), &amt);