fix check for integer literal for closed curly brackets.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>