sort keys to try to eliminate data dependence on Ruby version

This commit is contained in:
Steven G. Johnson 2015-06-25 19:15:57 -04:00
parent 6a7f92da64
commit eefdaed218

View File

@ -313,8 +313,8 @@ $stdout << "};\n\n"
$stdout << "const utf8proc_int32_t utf8proc_combinations[] = {\n " $stdout << "const utf8proc_int32_t utf8proc_combinations[] = {\n "
i = 0 i = 0
comb1st_indicies.keys.each_index do |a| comb1st_indicies.keys.sort.each_index do |a|
comb2nd_indicies.keys.each_index do |b| comb2nd_indicies.keys.sort.each_index do |b|
i += 1 i += 1
if i == 8 if i == 8
i = 0 i = 0