]> granicus.if.org Git - taglib/commitdiff
Silence ushort ambiguity errors
authorFestus Hagen <festushagen2002@yahoo.com>
Sun, 29 Nov 2015 10:13:44 +0000 (05:13 -0500)
committerFestus Hagen <festushagen2002@yahoo.com>
Mon, 30 Nov 2015 13:09:08 +0000 (08:09 -0500)
taglib/toolkit/tstring.cpp

index 829fe4777f8d5756e7f9a669c3858948064b684d..18b44d1a224a3b6f9a1ce49c48c88ed231a0cccc 100644 (file)
@@ -174,7 +174,7 @@ namespace
     if(length > 0) {
       if(swap) {
         for(size_t i = 0; i < length; ++i)
-          data[i] = Utils::byteSwap(static_cast<ushort>(s[i]));
+          data[i] = Utils::byteSwap(static_cast<TagLib::ushort>(s[i]));
       }
       else {
         ::wmemcpy(&data[0], s, length);
@@ -194,7 +194,7 @@ namespace
       }
 
       // Uses memcpy instead of reinterpret_cast to avoid an alignment exception.
-      ushort bom;
+      TagLib::ushort bom;
       ::memcpy(&bom, s, 2);
 
       if(bom == 0xfeff)
@@ -215,7 +215,7 @@ namespace
 
     data.resize(length / 2);
     for(size_t i = 0; i < length / 2; ++i) {
-      ushort c;
+      TagLib::ushort c;
       ::memcpy(&c, s, 2);
       if(swap)
         c = Utils::byteSwap(c);