[easytag] Drop sizeof when using G_N_ELEMENTS



commit 93201c3d62ee423af712c36085a8e314a0fcd960
Author: Santtu Lakkala <inz inz fi>
Date:   Mon Apr 14 11:17:59 2014 +0300

    Drop sizeof when using G_N_ELEMENTS
    
    The refactorization left extraneous sizeof when changing to
    G_N_ELEMENTS.

 src/gio_wrapper.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]