- Fix compilation error in switch cross-variable initialization

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@677 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-06-30 22:45:01 +00:00
parent 6b27a8461b
commit 36f62cbb8d
1 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ DynamicProcess::get_state() const
// TODO Is this OK? Must be tested...
int thread_starts_at;
switch(thread_state)
{
case state_running: // (a)
@ -96,7 +97,7 @@ DynamicProcess::get_state() const
continue;
case state_future: // (d)
result = state_future;
int thread_starts_at = (*it)->get_arrival_time();
thread_starts_at = (*it)->get_arrival_time();
if(next_thread_starts_at == uninitialized) // (d1)
next_thread_starts_at = thread_starts_at;
else