aboutsummaryrefslogtreecommitdiff
path: root/backendC/CleanCompilerSources/sa.c
diff options
context:
space:
mode:
Diffstat (limited to 'backendC/CleanCompilerSources/sa.c')
-rw-r--r--backendC/CleanCompilerSources/sa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/backendC/CleanCompilerSources/sa.c b/backendC/CleanCompilerSources/sa.c
index 4bc3d66..9ab5754 100644
--- a/backendC/CleanCompilerSources/sa.c
+++ b/backendC/CleanCompilerSources/sa.c
@@ -2910,10 +2910,11 @@ static void StrictPositionsClear (void)
{
int sizeBytes;
- sizeInts = bits2ints(kMaxStrictPositions);
+ sizeInts = bits2ints(kMaxStrictBits);
sizeBytes = sizeof (StrictPositionsS) + (sizeInts-1) * sizeof (int);
strict_positions = CompAlloc (sizeBytes);
-
+ for (i = 0; i < sizeInts; i++)
+ strict_positions->sp_bits[i] = 0;
strict_positions->sp_size = 0;
}