[cmake-commits] king committed SystemInformation.cxx 1.20 1.21

cmake-commits at cmake.org cmake-commits at cmake.org
Sun Feb 3 08:14:40 EST 2008


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv20820

Modified Files:
	SystemInformation.cxx 
Log Message:
COMP: Fix unreachable code warning.  Remove runtime test of constant information.


Index: SystemInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemInformation.cxx,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- SystemInformation.cxx	2 Feb 2008 21:18:35 -0000	1.20
+++ SystemInformation.cxx	3 Feb 2008 13:14:38 -0000	1.21
@@ -3154,11 +3154,7 @@
 /** 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@



More information about the Cmake-commits mailing list