Rev 1048 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1048 | Rev 1227 | ||
|---|---|---|---|
| Line 476... | Line 476... | ||
| 476 | for (int n = 0; n < iter->second.getValue().length(); n++) |
476 | for (int n = 0; n < iter->second.getValue().length(); n++) |
| 477 | { |
477 | { |
| 478 | if (iter->second.getStartBit()+n*8 + 8 > highestBit) |
478 | if (iter->second.getStartBit()+n*8 + 8 > highestBit) |
| 479 | highestBit = iter->second.getStartBit()+n*8 + 8; |
479 | highestBit = iter->second.getStartBit()+n*8 + 8; |
| 480 | 480 | ||
| 481 | bin. |
481 | //bin.replace(iter->second.getStartBit()+n*8, 8, uint2bin((unsigned int)iter->second.getValue()[n], 8)); |
| - | 482 | unsigned int temp = iter->second.getValue()[n]; |
|
| - | 483 | if (temp > 0xff) |
|
| - | 484 | { |
|
| - | 485 | temp &= 0xff; |
|
| - | 486 | } |
|
| - | 487 | bin.replace(iter->second.getStartBit()+n*8, 8, uint2bin(temp, 8)); |
|
| 482 | } |
488 | } |
| 483 | } |
489 | } |
| 484 | else if (iter->second.getType() == "hexstring") |
490 | else if (iter->second.getType() == "hexstring") |
| 485 | { |
491 | { |
| 486 | for (int n = 0; n < iter->second.getValue().length(); n++) |
492 | for (int n = 0; n < iter->second.getValue().length(); n++) |