- Corrected a potentially disastrous automatic int->uint conversion in TextSimulation
- Make test-history run by commenting some "dangerous" lines - Added a couple of comments to SchedulablesWidget::update() in the hope the may be useful to others in finding where the bug resides... git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@818 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
9f4415a835
commit
82289edc14
3 changed files with 18 additions and 5 deletions
|
@ -1413,7 +1413,13 @@ TextSimulation::update(const History& changed_history)
|
|||
/// therefore, the last snapshot on the history refers
|
||||
/// to instant (history.get_size() - 2).
|
||||
// this is a damn uint, so we must hack and hack
|
||||
int printed_instant = changed_history.get_size() > 1 ? changed_history.get_size() - 2 : -1;
|
||||
int printed_instant;
|
||||
|
||||
if(changed_history.get_size() > 1)
|
||||
printed_instant = static_cast<int>(changed_history.get_size()) - 2;
|
||||
else
|
||||
printed_instant = -1;
|
||||
|
||||
oss << ">>>> " << printed_instant << _("\nREADY QUEUE: { ");
|
||||
|
||||
p_stdout(oss.str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue