fixed a compiler warning and make the interface compliant to the implementation
Merge pull request #374 from jonasman/master

fixed a compiler warning and make the interface compliant to the implementation