Rev 1026 | Rev 1030 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1026 | Rev 1029 | ||
|---|---|---|---|
| Line 460... | Line 460... | ||
| 460 | } |
460 | } |
| 461 | } |
461 | } |
| 462 | 462 | ||
| 463 | try |
463 | try |
| 464 | { |
464 | { |
| 465 | bin = bin.substr(0, highestBit); |
465 | bin = bin.substr(0, ((uint)((highestBit+8)/8))*8); |
| 466 | } |
466 | } |
| 467 | catch (std::out_of_range& e) |
467 | catch (std::out_of_range& e) |
| 468 | { |
468 | { |
| 469 | cout << "DEBUG: translateValidDataToHex exception: " << e.what() << "\n"; |
469 | cout << "DEBUG: translateValidDataToHex exception: " << e.what() << "\n"; |
| 470 | cout << "DEBUG: A bin=" << bin << " :: highestBit=" << highestBit << endl; |
470 | cout << "DEBUG: A bin=" << bin << " :: highestBit=" << highestBit << endl; |