Browse Source

COMP: Fix unreachable code warning. Remove runtime test of constant information.

Brad King 18 years ago
parent
commit
8280232d0d
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Source/kwsys/SystemInformation.cxx

+ 1 - 5
Source/kwsys/SystemInformation.cxx

@@ -3154,11 +3154,7 @@ bool SystemInformationImplementation::QueryOSInformation()
 /** Return true if the machine is 64 bits */
 bool SystemInformationImplementation::Is64Bits()
 {
-  if(sizeof(long int) == 4)
-    {
-    return false;
-    }
-  return true;
+  return (sizeof(void*) == 8);
 }
 
 } // namespace @KWSYS_NAMESPACE@