]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_utilities/lib/endian.h
Security-57740.51.3.tar.gz
[apple/security.git] / OSX / libsecurity_utilities / lib / endian.h
index 5f96a103821d65fb692c01ad511428f2ab043b05..a85790d475d7eb6d5ca67a7abb4bc829ae94680f 100644 (file)
@@ -123,9 +123,9 @@ class Endian {
 public:
     typedef Type Value;
     Endian() : mValue(Type(0)) { }
-    Endian(Value v) : mValue(h2n(v)) { }
+    Endian(Value v) : mValue((Type) h2n(v)) { }
     
-    Type get ()        const                   { return n2h(mValue); }
+    Type get ()        const                   { return (Type) n2h(mValue); }
     operator Value () const            { return this->get(); }
     Endian &operator = (Value v)       { mValue = h2n(v); return *this; }