projects
/
ruby-vorbistagger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1646f
)
Tweaked Ogg::Vorbis::Comments#inspect.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 11 Aug 2006 14:09:24 +0000
(16:09 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 23 Aug 2006 17:33:24 +0000
(19:33 +0200)
ext/comments.c
patch
|
blob
|
history
diff --git
a/ext/comments.c
b/ext/comments.c
index 98dd73c4e04b34ccf1876102bab67f2be59bcacc..23967289b5e20ad56222171dafb9279147b84ee7 100644
(file)
--- a/
ext/comments.c
+++ b/
ext/comments.c
@@
-138,12
+138,12
@@
c_inspect (VALUE self)
for (i = 0; i < items->len; i++) {
struct RArray *pair = RARRAY (items->ptr[i]);
+ if (i)
+ rb_str_buf_cat (ret, ", ", 2);
+
rb_str_buf_append (ret, rb_inspect (pair->ptr[0]));
rb_str_buf_cat (ret, "=>", 2);
rb_str_buf_append (ret, rb_inspect (pair->ptr[1]));
-
- if (i < items->len - 1)
- rb_str_buf_cat (ret, ", ", 2);
}
rb_str_buf_cat (ret, "}", 1);