Skip to content

Commit 1dc31a7

Browse files
authored
Sync script changes from the runtime repo (#19062)
* Sync script changes from the runtime repo #18943 * Additional change
1 parent 50ef4fa commit 1dc31a7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/Shared/runtime/CopyToAspNetCore.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ IF [%remote_repo%] == [] (
1010

1111
echo ASPNETCORE_REPO: %remote_repo%
1212

13-
robocopy . %remote_repo%\src\Shared\runtime /MIR
14-
robocopy .\..\..\..\..\..\tests\Tests\System\Net\aspnetcore\ %remote_repo%\src\Shared\test\Shared.Tests\runtime /MIR
13+
REM https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code
14+
(robocopy . %remote_repo%\src\Shared\runtime /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0
15+
(robocopy .\..\..\..\..\..\tests\Tests\System\Net\aspnetcore\ %remote_repo%\src\Shared\test\Shared.Tests\runtime /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0

src/Shared/runtime/CopyToRuntime.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ IF [%remote_repo%] == [] (
1010

1111
echo RUNTIME_REPO: %remote_repo%
1212

13-
robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\aspnetcore /MIR
14-
robocopy .\..\test\Shared.Tests\runtime %remote_repo%\src\libraries\Common\tests\Tests\System\Net\aspnetcore /MIR
13+
REM https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code
14+
(robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\aspnetcore /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0
15+
(robocopy .\..\test\Shared.Tests\runtime %remote_repo%\src\libraries\Common\tests\Tests\System\Net\aspnetcore /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0

src/Shared/runtime/Http3/QPack/QPackDecoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private void OnByte(byte b, IHttpHeadersHandler handler)
224224
}
225225
break;
226226
case State.CompressedHeaders:
227-
switch (BitOperations.LeadingZeroCount(b) - 24)
227+
switch (BitOperations.LeadingZeroCount(b) - 24) // byte 'b' is extended to uint, so will have 24 extra 0s.
228228
{
229229
case 0: // Indexed Header Field
230230
prefixInt = IndexedHeaderFieldPrefixMask & b;

0 commit comments

Comments
 (0)