[easytag] apetag_save(): make temp unsigned



commit a3c4484335e2c32538930e81c66dbace10149803
Author: Adrian Bunk <bunk stusta de>
Date:   Mon Jan 21 20:38:27 2013 +0200

    apetag_save(): make temp unsigned
    
    This fixes the following gcc warnings:
    
    <--  snip  -->
    
      CC     src/libapetag/easytag-apetaglib.o
    src/libapetag/apetaglib.c: In function âapetag_saveâ:
    src/libapetag/apetaglib.c:993:13: warning: pointer targets in passing argument 1 of âlong2apeâ differ in signedness [-Wpointer-sign]
    src/libapetag/apetaglib.c:118:1: note: expected âunsigned char *â but argument is of type âchar *â
    src/libapetag/apetaglib.c:996:13: warning: pointer targets in passing argument 1 of âlong2apeâ differ in signedness [-Wpointer-sign]
    src/libapetag/apetaglib.c:118:1: note: expected âunsigned char *â but argument is of type âchar *â
    src/libapetag/apetaglib.c:1002:13: warning: pointer targets in passing argument 1 of âlong2apeâ differ in signedness [-Wpointer-sign]
    src/libapetag/apetaglib.c:118:1: note: expected âunsigned char *â but argument is of type âchar *â
    
    <--  snip  -->

 src/libapetag/apetaglib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libapetag/apetaglib.c b/src/libapetag/apetaglib.c
index cb887f9..48823b6 100644
--- a/src/libapetag/apetaglib.c
+++ b/src/libapetag/apetaglib.c
@@ -896,7 +896,7 @@ apetag_save (char *filename, apetag *mem_cnt, int flag)
     struct tag **mTag;
     size_t tagSSize = 32;
     int n;
-    char temp[4];
+    unsigned char temp[4];
     
     if (mem_cnt==NULL) {
         PRINT_ERR("ERROR->apetaglib>apetag_save::apetag_init()\n");



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