diff Implab/Automaton/IndexedAlphabetBase.cs @ 180:c32688129f14 ref20160224

refactoring complete, JSONParser rewritten
author cin
date Thu, 24 Mar 2016 02:30:46 +0300
parents 0c3c69fe225b
children
line wrap: on
line diff
--- a/Implab/Automaton/IndexedAlphabetBase.cs	Wed Mar 23 19:52:08 2016 +0300
+++ b/Implab/Automaton/IndexedAlphabetBase.cs	Thu Mar 24 02:30:46 2016 +0300
@@ -30,9 +30,9 @@
         /// </remarks>
         /// <returns>The translation map.</returns>
         public int[] GetTranslationMap() {
-            Dictionary<int,int> map = new Dictionary<int, int>();
+            var map = new Dictionary<int, int>();
 
-            int max;
+            int max = 0;
             foreach (var p in Mappings) {
                 var index = GetSymbolIndex(p.Key);
                 max = Math.Max(max, index);