Under 32bits OS,
using the same code, but this generateTree, the tree item over 65536 overlapped
the first one.
May be an unsigned short is used somewhere instead of the original int for
computing Y.
void generateTree(size_t s, vector<string>& tree) {
for ( size_t i = 0; tree.size() < s; ++i )
for ( size_t j = 0; j < s * 5 / 100; ++j ) {
ostringstream oss; oss << i << "/" << std::string( i*4, ' ' ) << i *
1000 << " - " << j;
tree.push_back( oss.str() );
}
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk