presidentbeef/brakeman — pull request #115 by presidentbeef (2012-07-17 23:01:28+00:00)
Title: Fix negative array indexing

There was a problem when handling negative array indexes.

Given code like this:

```ruby
x = []
x[-1]
```

Brakeman would try to index it like this (the `+1` is because it was trying to skip `:array`):

```ruby
s(:array)[-1 + 1]
```

Resulting in `:array` being returned, which is clearly not right.

This lead to errors like:

`Result must be a Sexp, was Symbol::array`