diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-27 10:35:49 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-27 10:35:49 -0700 |
commit | 29426e5d765f10e10aeb3d5380a3fa91bd2bfed9 (patch) | |
tree | a96ef7fe00ad36ad0ec6baf25eece0e58ae6bc62 /subx/023check_operand_sizes.cc | |
parent | 3f4bbe9e5fd1389720c7adb5577edf2dc01d51e9 (diff) | |
download | mu-29426e5d765f10e10aeb3d5380a3fa91bd2bfed9.tar.gz |
4435 - make instruction packing less strict
Now it will pass labels straight through. But we may get more confusing error messages in later passes in some situations.
Diffstat (limited to 'subx/023check_operand_sizes.cc')
-rw-r--r-- | subx/023check_operand_sizes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/023check_operand_sizes.cc b/subx/023check_operand_sizes.cc index 158b1465..048cc28a 100644 --- a/subx/023check_operand_sizes.cc +++ b/subx/023check_operand_sizes.cc @@ -57,7 +57,7 @@ int32_t parse_int(const string& s) { istringstream in(s); int32_t result = 0; in >> std::hex >> result; - if (!in) { + if (!in || !in.eof()) { raise << "not a number: " << s << '\n' << end(); return 0; } |