From 387fffdcbc41263b349f8a885a5db251579de61a Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Thu, 31 Aug 2000 17:56:28 +0000 Subject: [PATCH] don't know how I omitted this last night, particularly since mscott tested. must shift the bit in the mask to get a new position. This should fix the string hang --- string/public/nsAReadableString.h | 2 +- xpcom/ds/nsAReadableString.h | 2 +- xpcom/string/public/nsAReadableString.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/string/public/nsAReadableString.h b/string/public/nsAReadableString.h index 888574e0d5de..981c999aff1e 100644 --- a/string/public/nsAReadableString.h +++ b/string/public/nsAReadableString.h @@ -1284,7 +1284,7 @@ inline nsPromiseConcatenation operator+( const nsPromiseConcatenation& lhs, const basic_nsAReadableString& rhs ) { - return nsPromiseConcatenation(lhs, rhs, lhs.GetFragmentIdentifierMask()); + return nsPromiseConcatenation(lhs, rhs, lhs.GetFragmentIdentifierMask()<<1); } template diff --git a/xpcom/ds/nsAReadableString.h b/xpcom/ds/nsAReadableString.h index 888574e0d5de..981c999aff1e 100644 --- a/xpcom/ds/nsAReadableString.h +++ b/xpcom/ds/nsAReadableString.h @@ -1284,7 +1284,7 @@ inline nsPromiseConcatenation operator+( const nsPromiseConcatenation& lhs, const basic_nsAReadableString& rhs ) { - return nsPromiseConcatenation(lhs, rhs, lhs.GetFragmentIdentifierMask()); + return nsPromiseConcatenation(lhs, rhs, lhs.GetFragmentIdentifierMask()<<1); } template diff --git a/xpcom/string/public/nsAReadableString.h b/xpcom/string/public/nsAReadableString.h index 888574e0d5de..981c999aff1e 100644 --- a/xpcom/string/public/nsAReadableString.h +++ b/xpcom/string/public/nsAReadableString.h @@ -1284,7 +1284,7 @@ inline nsPromiseConcatenation operator+( const nsPromiseConcatenation& lhs, const basic_nsAReadableString& rhs ) { - return nsPromiseConcatenation(lhs, rhs, lhs.GetFragmentIdentifierMask()); + return nsPromiseConcatenation(lhs, rhs, lhs.GetFragmentIdentifierMask()<<1); } template