fix write to stream

This commit is contained in:
Mike Nolan 2022-11-27 13:39:06 -06:00
parent 024342d4da
commit e64025f4f3
1 changed files with 1 additions and 1 deletions

2
AST.cs
View File

@ -614,7 +614,7 @@ namespace langtest
{
List<long> box = boxes[boxId].Item1;
byte[] data=box.Skip((int)offset).Take((int)len).Select<long,byte>((e)=>{
return (byte)(e % byte.MaxValue);
return (byte)(e % 256);
}).ToArray();
GetStream(streamId).Write(data,0,data.Length);