Remove unneeded StringValue() calls in chunk_serialize().
[ruby-eet.git] / ext / ext.c
index e686444dc605b65fcaaa1b3405c86b803c82db0f..63096a7e744cd9cad366a946c97bf217036f630a 100644 (file)
--- a/ext/ext.c
+++ b/ext/ext.c
@@ -1,5 +1,5 @@
 /*
- * $Id: ext.c 66 2005-06-29 15:42:58Z tilman $
+ * $Id: ext.c 67 2005-06-29 15:44:09Z tilman $
  *
  * Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -497,11 +497,9 @@ chunk_serialize (VALUE self)
        struct RString *tag, *data;
 
        tmp = rb_ivar_get (self, id_tag);
-       StringValue (tmp);
        tag = RSTRING (tmp);
 
        tmp = rb_ivar_get (self, id_data);
-       StringValue (tmp);
        data = RSTRING (tmp);
 
        buf_len = 9 + tag->len + data->len;