Thanks to Patric Jonsson <patjon@kth.se>. 32bit property data, though
CARD32, is returned in an array of longs (64bit elements on 64bit
machinery).
SCHEME_OBJECT result = (allocate_marked_vector (TC_VECTOR, nitems, 1));
unsigned long index;
for (index = 0; (index < nitems); index += 1)
- VECTOR_SET (result, index, (ulong_to_integer (((CARD32 *) data) [index])));
+ VECTOR_SET (result, index, (ulong_to_integer ((CARD32) ((long *) data) [index])));
return (result);
}
(if (< index length)
(begin
(vector-set! result index (c-> scan "CARD32"))
- (alien-byte-increment! scan (c-sizeof "CARD32"))
+ (alien-byte-increment! scan (c-sizeof "long"))
(loop (1+ index)))))
result))