You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it is not the ternary operator [condition]:[expr1]?[expr2] that lead to the problem. I used if else, and the result is still b'\xff\xc3\xbf\xc3\xbf\xc3\xbf':
publicstatic ByteString EncodeIntegerFixedLength(BigIntegeri,BigIntegerfixedLength){ByteStringdata=(ByteString)i;BigIntegerlengthToComplement=fixedLength- data.Length;if(lengthToComplement<0)thrownew ArgumentException("Too long value "+data);if(lengthToComplement>0){ByteStringsuffix="";for(;lengthToComplement>0;--lengthToComplement){if(i >= 0)suffix+="\x00";elsesuffix+="\xff";}data+=suffix;}returndata;}
# Code RelationalDB.cs line 336: "suffix += "\xff";"
1204 LDLOC2
1205 PUSHDATA1 C3-BF # as text: "?"
1209 CAT
1210 CONVERT 28 # ByteString type
1212 DUP
1213 STLOC2
1214 DROP
The text was updated successfully, but these errors were encountered:
nccs 3.6.0
And it is not the ternary operator
[condition]:[expr1]?[expr2]
that lead to the problem. I usedif else
, and the result is still b'\xff\xc3\xbf\xc3\xbf\xc3\xbf':The text was updated successfully, but these errors were encountered: