Fix bug 803: avoid char* to int* conversion