]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing warning
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Sep 2010 19:03:06 +0000 (19:03 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Sep 2010 19:03:06 +0000 (19:03 +0000)
HLT/trigger/AliHLTGlobalTriggerComponent.cxx

index 5dc78fa7e5f7f1d824fff1c8bdd53f3152c96520..525a50ea031b0150d02bfe06d3d146bc08bfb553 100644 (file)
@@ -733,9 +733,13 @@ void AliHLTGlobalTriggerComponent::GenerateFileName(TString& name, TString& file
   // Creates a unique file name for the generated code.
   
   TUUID guid = GenerateGUID();
-  UChar_t buf[16];
+  union
+  {
+    UChar_t buf[16];
+    UInt_t bufAsInt[4];
+  };
   guid.GetUUID(buf);
-  fUniqueID = *reinterpret_cast<UInt_t*>(buf);
+  fUniqueID = bufAsInt[0];
   TString guidstr = guid.AsString();
   // Replace '-' with '_' in string.
   for (int i = 0; i < guidstr.Length(); ++i)