Mercurial > hg > octave-nkf
comparison src/oct-map.cc @ 4548:820323598f4f
[project @ 2003-10-26 03:16:42 by jwe]
author | jwe |
---|---|
date | Sun, 26 Oct 2003 03:16:42 +0000 |
parents | 508238e65af7 |
children | e84592dc70b9 |
comparison
equal
deleted
inserted
replaced
4547:308feb0e5646 | 4548:820323598f4f |
---|---|
136 | 136 |
137 int len = array_length (); | 137 int len = array_length (); |
138 | 138 |
139 if (rhs_len < len) | 139 if (rhs_len < len) |
140 { | 140 { |
141 tmp.resize (len, fill_value); | 141 tmp.resize_and_fill (len, fill_value); |
142 } | 142 } |
143 else if (rhs_len > len) | 143 else if (rhs_len > len) |
144 { | 144 { |
145 for (iterator p = begin (); p != end (); p++) | 145 for (iterator p = begin (); p != end (); p++) |
146 contents(p).resize (rhs_len, fill_value); | 146 contents(p).resize_and_fill (rhs_len, fill_value); |
147 | 147 |
148 array_len = rhs_len; | 148 array_len = rhs_len; |
149 } | 149 } |
150 | 150 |
151 map[key] = tmp; | 151 map[key] = tmp; |