mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
(scm_uniform_vector_read_x): Declare base as char*
rather than void*, so we can do pointer arithmetic on it. (Reported by Mike Gran.) (s_scm_uniform_vector_write): Ditto.
This commit is contained in:
parent
50d643b5bd
commit
05b454920e
2 changed files with 9 additions and 2 deletions
|
@ -850,7 +850,7 @@ SCM_DEFINE (scm_uniform_vector_read_x, "uniform-vector-read!", 1, 3, 0,
|
|||
ssize_t inc;
|
||||
size_t cstart, cend;
|
||||
size_t remaining, off;
|
||||
void *base;
|
||||
char *base;
|
||||
|
||||
if (SCM_UNBNDP (port_or_fd))
|
||||
port_or_fd = scm_current_input_port ();
|
||||
|
@ -963,7 +963,7 @@ SCM_DEFINE (scm_uniform_vector_write, "uniform-vector-write", 1, 3, 0,
|
|||
ssize_t inc;
|
||||
size_t cstart, cend;
|
||||
size_t amount, off;
|
||||
const void *base;
|
||||
const char *base;
|
||||
|
||||
port_or_fd = SCM_COERCE_OUTPORT (port_or_fd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue