Fixed typo in the darwin input helper.
Fixed benign sign comparison issue in Darwin's input helper.