#endif
#include <stdio.h>
+#include <stdint.h>
#include <string.h>
#include <gnutls/gnutls.h>
#include <libguile.h>
else
scm_gnutls_error (result, "fill_session_record_port_input");
- return ((void *) chr);
+ return ((void *) (uintptr_t) chr);
}
/* Fill in the input buffer of PORT. */
if (SCM_GNUTLS_SESSION_TRANSPORT_IS_FD (c_session))
/* SESSION's underlying transport is a raw file descriptor, so we
must leave "Guile mode" to allow the GC to run. */
- chr = (int) scm_without_guile (do_fill_port, &c_args);
+ chr = (intptr_t) scm_without_guile (do_fill_port, &c_args);
else
/* SESSION's underlying transport is a port, so don't leave "Guile
mode". */
- chr = (int) do_fill_port (&c_args);
+ chr = (intptr_t) do_fill_port (&c_args);
}
else
chr = (int) *c_port->read_pos;
c_session = scm_to_gnutls_session (session, 1, FUNC_NAME);
c_fd = (int) scm_to_uint (fd);
- gnutls_transport_set_ptr (c_session, (gnutls_transport_ptr_t) c_fd);
+ gnutls_transport_set_ptr (c_session, (gnutls_transport_ptr_t) (intptr_t) c_fd);
SCM_GNUTLS_SET_SESSION_TRANSPORT_IS_FD (c_session, 1);