From 7ad9fd8b217eedd7cab2dc9e1dd5475244d16957 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Sep 2009 01:14:18 -0700 Subject: http: cleanup assertion for memoized header strings assert_frozen() should not be checking what type of object it is, instead put an extra assertion in there to ensure we have a string. --- ext/unicorn_http/ext_help.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/unicorn_http/ext_help.h') diff --git a/ext/unicorn_http/ext_help.h b/ext/unicorn_http/ext_help.h index d1b71d6..bd29cc7 100644 --- a/ext/unicorn_http/ext_help.h +++ b/ext/unicorn_http/ext_help.h @@ -28,7 +28,7 @@ static void rb_18_str_set_len(VALUE str, long len) #if defined(OBJ_FROZEN) # define assert_frozen(f) assert(OBJ_FROZEN(f) && "unfrozen object") #else -# define assert_frozen(f) assert(!NIL_P(f)) +# define assert_frozen(f) do {} while (0) #endif #if !defined(OFFT2NUM) -- cgit v1.2.3-24-ge0c7