check_tag now works for vectorspace as well as consspace tags
All tests except bignum boundary tests still pass.
This commit is contained in:
parent
492460f37e
commit
6f54b92d32
|
@ -37,14 +37,14 @@ bool check_tag( struct cons_pointer pointer, char *tag ) {
|
||||||
|
|
||||||
result = strncmp( &cell.tag.bytes[0], tag, TAGLENGTH ) == 0;
|
result = strncmp( &cell.tag.bytes[0], tag, TAGLENGTH ) == 0;
|
||||||
|
|
||||||
if ( !result ) {
|
if ( result == false ) {
|
||||||
// if ( vectorpointp( pointer ) ) { <<< this line blows up!
|
if ( strncmp( &cell.tag.bytes, VECTORPOINTTAG, TAGLENGTH ) == 0 ) {
|
||||||
// // struct vector_space_object *vec = pointer_to_vso( pointer );
|
struct vector_space_object *vec = pointer_to_vso( pointer );
|
||||||
|
|
||||||
// // if ( vec != NULL ) {
|
if ( vec != NULL ) {
|
||||||
// // result = strncmp( &vec->header.tag.bytes[0], tag, TAGLENGTH ) == 0;
|
result = strncmp( &vec->header.tag.bytes[0], tag, TAGLENGTH ) == 0;
|
||||||
// // }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue