Object#to_eet: don't put the final chunk in a stream again.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 9 Jun 2005 17:33:48 +0000 (17:33 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 9 Jun 2005 17:33:48 +0000 (17:33 +0000)
ChangeLog
ext/ext.c

index ec4033f795c54cbaad5c107c2f8330ad1e391846..0bde4f367c209a63ebb645ba4b88f8d86f8c735f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
 --
-$Id: ChangeLog 60 2005-06-08 16:18:32Z tilman $
+$Id: ChangeLog 61 2005-06-09 17:33:48Z tilman $
 ++
 
+2005-06-09 Tilman Sauerbeck (tilman at code-monkey de)
+        * ext/ext.c: Object#to_eet: Don't put the final chunk in a stream
+          again, it's not needed
+
 2005-06-08 Tilman Sauerbeck (tilman at code-monkey de)
         * ext/ext.c, lib/eet.rb, test/test_basic.rb:
           Re-implemented Float#to_eet_chunks in C and switched format to
index c4082dc86b2535fa60b97232778632968e56b17b..22ccb19aef5582dbe94c7c5d2c38760ddf3ce0e8 100644 (file)
--- a/ext/ext.c
+++ b/ext/ext.c
@@ -1,5 +1,5 @@
 /*
- * $Id: ext.c 60 2005-06-08 16:18:32Z tilman $
+ * $Id: ext.c 61 2005-06-09 17:33:48Z tilman $
  *
  * Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -591,9 +591,7 @@ c_to_eet (VALUE self)
        args[1] = rb_funcall (stream, id_serialize, 0);
        chunk = rb_class_new_instance (2, args, cChunk);
 
-       stream = rb_class_new_instance (1, &chunk, cStream);
-
-       return rb_funcall (stream, id_serialize, 0);
+       return rb_funcall (chunk, id_serialize, 0);
 }
 
 static VALUE