Fix IO_INPUT with 64-bit.

bug 16846318
bug 17006933

Change-Id: Ic13ef26875d8a6fab1ffb542d62038b768a536ff
2 files changed