From 029d2a9af60b487a332420cf743da61301ccf928 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 9 Jun 2005 17:33:48 +0000 Subject: [PATCH] Object#to_eet: don't put the final chunk in a stream again. --- ChangeLog | 6 +++++- ext/ext.c | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ec4033f..0bde4f3 100644 --- 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 diff --git a/ext/ext.c b/ext/ext.c index c4082dc..22ccb19 100644 --- 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 -- 2.30.2