[Avida-cvs] [avida-svn] r1013 - in trunk: Avida.xcodeproj source/tools
brysonda at myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Fri Sep 29 06:39:37 PDT 2006
Author: brysonda
Date: 2006-09-29 09:39:36 -0400 (Fri, 29 Sep 2006)
New Revision: 1013
Modified:
trunk/Avida.xcodeproj/project.pbxproj
trunk/source/tools/cRandom.h
Log:
Fix cRandom::GetUInt... ack trailing parenthesis.
Modified: trunk/Avida.xcodeproj/project.pbxproj
===================================================================
--- trunk/Avida.xcodeproj/project.pbxproj 2006-09-29 13:30:08 UTC (rev 1012)
+++ trunk/Avida.xcodeproj/project.pbxproj 2006-09-29 13:39:36 UTC (rev 1013)
@@ -248,23 +248,6 @@
E626209E0A372C2A00C07685 /* SaveLoadActions.cc in Sources */ = {isa = PBXBuildFile; fileRef = 708051A80A1F65FE00CBB8B6 /* SaveLoadActions.cc */; };
/* End PBXBuildFile section */
-/* Begin PBXBuildStyle section */
- B78093970AC5CF2000111E53 /* Development */ = {
- isa = PBXBuildStyle;
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- };
- name = Development;
- };
- B78093980AC5CF2000111E53 /* Deployment */ = {
- isa = PBXBuildStyle;
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- };
- name = Deployment;
- };
-/* End PBXBuildStyle section */
-
/* Begin PBXContainerItemProxy section */
70DCF67509D4E10500924128 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
@@ -319,7 +302,7 @@
700E12610A097A0800B604CD /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
700E12630A097A1700B604CD /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
700E28CF0859FFD700CF158A /* tObjectFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tObjectFactory.h; sourceTree = "<group>"; };
- 700E2B83085DE50C00CF158A /* avida-viewer */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = "avida-viewer"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 700E2B83085DE50C00CF158A /* avida-viewer */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "avida-viewer"; sourceTree = BUILT_PRODUCTS_DIR; };
7013845F09028B3E0087ED2E /* cAvidaConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cAvidaConfig.h; sourceTree = "<group>"; };
7013846009028B3E0087ED2E /* cAvidaConfig.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cAvidaConfig.cc; sourceTree = "<group>"; };
701384A10902A16F0087ED2E /* defs.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = defs.h; sourceTree = "<group>"; };
@@ -810,7 +793,7 @@
DCC315CF076253A5008F7A48 /* Makefile */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
DCC315D0076253A5008F7A48 /* task_event_gen.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = task_event_gen.cc; sourceTree = "<group>"; };
DCC315D1076253A5008F7A48 /* task_event_gen.old.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = task_event_gen.old.cc; sourceTree = "<group>"; };
- DCC3164D07626CF3008F7A48 /* avida */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = avida; sourceTree = BUILT_PRODUCTS_DIR; };
+ DCC3164D07626CF3008F7A48 /* avida */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = avida; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -1653,12 +1636,6 @@
DCC30C4D0762532C008F7A48 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 702442D70859E0B00059BD9B /* Build configuration list for PBXProject "Avida" */;
- buildSettings = {
- };
- buildStyles = (
- B78093970AC5CF2000111E53 /* Development */,
- B78093980AC5CF2000111E53 /* Deployment */,
- );
hasScannedForEncodings = 0;
mainGroup = DCC30C490762532C008F7A48;
productRefGroup = DCC3164E07626CF3008F7A48 /* Products */;
Modified: trunk/source/tools/cRandom.h
===================================================================
--- trunk/source/tools/cRandom.h 2006-09-29 13:30:08 UTC (rev 1012)
+++ trunk/source/tools/cRandom.h 2006-09-29 13:39:36 UTC (rev 1013)
@@ -126,7 +126,7 @@
* @return The pseudo random number.
* @param max The upper bound for the random numbers (will never be returned).
**/
- unsigned int GetUInt(const unsigned int max) { return static_cast<unsigned int>(GetDouble()) * max); }
+ unsigned int GetUInt(const unsigned int max) { return static_cast<unsigned int>(GetDouble()) * max; }
/**
* Generate an unsigned int out of an interval.
@@ -145,7 +145,7 @@
* @param max The upper bound for the random numbers (will never be returned).
**/
int GetInt(const int max) { return static_cast<int>(GetUInt(max)); }
- int GetInt(const int min, const int max) { return (static_cast<int>(GetUInt(max - min)) + min; }
+ int GetInt(const int min, const int max) { return static_cast<int>(GetUInt(max - min)) + min; }
// Random Event Generation //////////////////////////////////////////////////
More information about the Avida-cvs
mailing list