Skip to content

Commit

Permalink
[fix] TYPEP(x,y) should check x is not null too
Browse files Browse the repository at this point in the history
  • Loading branch information
zeehio committed Feb 4, 2014
1 parent ae5a7cc commit b63314a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/siod_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct obj

#define TYPE(x) (((x) == NIL) ? 0 : ((*(x)).type))

#define TYPEP(x,y) (TYPE(x) == (y))
#define TYPEP(x,y) ( (x != NULL) && (TYPE(x) == (y)) )
#define NTYPEP(x,y) (TYPE(x) != (y))

#define tc_nil 0
Expand Down

0 comments on commit b63314a

Please sign in to comment.