Fix bytevectors VALIDATE_REAL to test for reals, not rationals
authorMark H Weaver <mhw@netris.org>
Tue, 1 Mar 2011 17:46:38 +0000 (12:46 -0500)
committerMark H Weaver <mhw@netris.org>
Tue, 8 Mar 2011 22:50:47 +0000 (17:50 -0500)
commit73ea546c51c5ca531cc6040eb37e292a8334b33e
tree3330e4fa573d22b73216f84767604981fac316ce
parent831e6782bfa776c30286ef14f1356b9d5aa8f1ee
Fix bytevectors VALIDATE_REAL to test for reals, not rationals

Reported and fixed by Daniel Llorens <dll@bluewin.ch>.

* libguile/bytevectors.c (VALIDATE_REAL): Test for reals, not rationals.

* test-suite/tests/srfi-4.test (f32 vectors, f64 vectors): Add tests.
libguile/bytevectors.c
test-suite/tests/srfi-4.test