projects
/
mtp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e3ed5
)
Fix of a minor ambiguity.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 26 Aug 2012 19:29:09 +0000
(21:29 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 26 Aug 2012 19:29:09 +0000
(21:29 +0200)
mtp_tracker.cc
patch
|
blob
|
history
diff --git
a/mtp_tracker.cc
b/mtp_tracker.cc
index
793b672
..
c7c6602
100644
(file)
--- a/
mtp_tracker.cc
+++ b/
mtp_tracker.cc
@@
-104,11
+104,11
@@
void MTPTracker::write(ostream *os) {
}
void MTPTracker::read(istream *is) {
- int
nb_locations, nb_time_steps
;
+ int
l, t
;
- (*is) >>
nb_locations >> nb_time_steps
;
+ (*is) >>
l >> t
;
- allocate(
nb_time_steps, nb_locations
);
+ allocate(
t, l
);
for(int l = 0; l < nb_locations; l++) {
for(int m = 0; m < nb_locations; m++) {