﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3995	Maps abort with negative integers as keys	anonymous	Jon	"Since the first time maps got introduced, the types supported as keys were Strings and Intigers, notably both positive and negative.

Now since version '''3.3.15.2''', the negative ints cause a hard crash with error '''""Variable subscript badly formatted.""'''

This snippet works in '''3.3.15.0''' and '''3.3.15.1''' (and likely in earlier versions too), but crashes in all versions from '''3.3.15.2''' to '''3.3.16.1'''

{{{#!autoit
Global $m[]
$m[12] = 'twelve'
$m['-one'] = -1
$m[-2] = 'negative two'
for $key in MapKeys($m)
  ConsoleWrite(VarGetType($key) &'->'& VarGetType($m[$key]) &' : '& $key &' = '& $m[$key] & @CRLF)
next
}}}

In the working versions it will print this:
{{{
Int64->String : 12 = twelve
String->Int32 : -one = -1
Int64->String : -2 = negative two
}}}"	Bug	assigned		AutoIt	3.3.16.1	None			
