summaryrefslogtreecommitdiff
path: root/src/stv.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/stv.adb')
-rw-r--r--src/stv.adb6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stv.adb b/src/stv.adb
index 29b18c9..20b5b29 100644
--- a/src/stv.adb
+++ b/src/stv.adb
@@ -237,9 +237,6 @@ begin
-- Set up and run the election singleton
declare
- subtype Valid_CandidateID is Candidates.CandidateID
- range Candidate_Data.First_Index .. Candidate_Data.Last_Index;
-
package Given_Prefs is new Preferences
(Above_Ballot => Above_Ballot,
Below_Ballot => Below_Ballot);
@@ -248,7 +245,8 @@ begin
(Given_Prefs => Given_Prefs);
package Vote_Bundle_Containers is new Vote_Bundles.Containers
- (Candidate_Range => Valid_CandidateID);
+ (Min_Valid => Candidate_Data.First_Index,
+ Max_Valid => Candidate_Data.Last_Index);
package This_Election is new Election
(Given_Bundles => Vote_Bundles,