Fixed method signature: Made indexes unsigned.
Fixed warning with -Wundef.