Skip to content

Commit 95ce071

Browse files
committed
init ia5string changed to it generates a valid initial value, not a call to memset.
1 parent 2fdd64e commit 95ce071

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

BackendAst/DAstInitialize.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ let createIA5StringInitFunc (r:Asn1AcnAst.AstRoot) (lm:LanguageMacros) (t:Asn1A
362362
let i = sprintf "i%d" ii
363363
let resVar = p.accessPath.asIdentifier
364364
let td = strTypeDef.longTypedefName2 (lm.lg.hasModules) (ToC p.modName)
365-
let funcBody = initTestCaseIA5String (p.accessPath.joined lm.lg) (lm.lg.getAccess p.accessPath) ( (o.maxSize.uper+1I)) ( (o.maxSize.uper+1I)) i td bAlpha arrAsciiCodes (BigInteger arrAsciiCodes.Length) true resVar
365+
let funcBody = initTestCaseIA5String (p.accessPath.joined lm.lg) (lm.lg.getAccess p.accessPath) ( (o.maxSize.uper+1I)) ( (o.maxSize.uper+1I)) i td bAlpha arrAsciiCodes (BigInteger arrAsciiCodes.Length) false resVar
366366
let lvars = lm.lg.init.zeroIA5String_localVars ii
367367
let resVar = p.accessPath.asIdentifier
368368
{InitFunctionResult.funcBody = funcBody; resultVar = resVar; localVariables=lvars}

StgC/LangGeneric_c.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ type LangGeneric_c() =
305305
}
306306
override this.init =
307307
{
308-
Initialize_parts.zeroIA5String_localVars = fun _ -> []
308+
Initialize_parts.zeroIA5String_localVars = fun ii -> [SequenceOfIndex (ii, None)]
309309
choiceComponentTempInit = false
310310
initMethSuffix = fun _ -> ""
311311
}

0 commit comments

Comments
 (0)