Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused variable and update version number

- Removed the variable `i` from `Acn_Dec_UInt_ASCII_VarSize_NullTerminated`, which was used for iteration counting, potentially affecting loop behavior.
- Updated the version string in `printVersion` from "4.5.2.5" to "4.5.2.6" to reflect the latest version increment. Retained commented-out lines for assembly version retrieval.
  • Loading branch information
usr3-1415 committed Feb 23, 2025
1 parent 570f61f commit 66f1178
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions asn1crt/asn1crt_encoding_acn.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ flag Acn_Dec_UInt_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccUint*
byte tmp[10];
size_t sz = null_characters_size < 10 ? null_characters_size : 10;
memset(tmp, 0x0, 10);
asn1SccSint i = 0;

//read null_character_size characters into the tmp buffer
for (int j = 0; j < (int)null_characters_size; j++) {
Expand All @@ -863,7 +862,6 @@ flag Acn_Dec_UInt_ASCII_VarSize_NullTerminated(BitStream* pBitStrm, asn1SccUint*

while (memcmp(null_characters, tmp, sz) != 0) {
digit = tmp[0];
i++;
for (int j = 0; j < (int)null_characters_size - 1; j++)
tmp[j] = tmp[j + 1];
if (!BitStream_ReadByte(pBitStrm, &(tmp[null_characters_size - 1])))
Expand Down
2 changes: 1 addition & 1 deletion asn1scc/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ let printVersion () =
//let fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
//let version = fvi.FileVersion;

let version = "4.5.2.5"
let version = "4.5.2.6"
printfn "asn1scc version %s\n" version
()

Expand Down

0 comments on commit 66f1178

Please sign in to comment.