Fix implicit conversion warning under arm64

Thanks for an outstanding library!

This fixes a minor implicit conversion warning when building libtelnet under arm64 with `-Wshorten-64-to-32` enabled.