gnutls: fix compiler warning

conversion to 'int' from 'long int' may alter its value