[PATCH] Drop sizeof when using G_N_ELEMENTS
- From: Santtu Lakkala <inz inz fi>
- To: easytag-list gnome org
- Subject: [PATCH] Drop sizeof when using G_N_ELEMENTS
- Date: Mon, 14 Apr 2014 11:17:59 +0300
The refactorization left extraneous sizeof when changing to G_N_ELEMENTS.
---
src/gio_wrapper.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gio_wrapper.cc b/src/gio_wrapper.cc
index 1578d75..763cfa4 100644
--- a/src/gio_wrapper.cc
+++ b/src/gio_wrapper.cc
@@ -269,7 +269,7 @@ GIO_IOStream::insert (TagLib::ByteVector const &data,
seek (0);
while (g_input_stream_read_all (istream, buffer,
- MIN (sizeof (G_N_ELEMENTS (buffer)), start),
+ MIN (G_N_ELEMENTS (buffer), start),
&r, NULL, &error) && r > 0)
{
gsize w;
--
1.8.3.2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]