зеркало из https://github.com/mozilla/pjs.git
write now takes ints instead of unsigned ints
This commit is contained in:
Родитель
084f85b760
Коммит
8988ae7888
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче