Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 2 deletions
-rw-r--r--src/Models/Table.cpp5
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index c80c7dd..0d46853 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -40,9 +40,10 @@ void A(std::ifstream& in, List<char>& buffer) {
}
void throwException(std::ifstream& inFile, unsigned row) {
+ row++;
throw std::logic_error((
- (((((String("Error: Invalid character \"") += inFile.peek())
- += "\" at row ") += row) += "\" and column ") += ((int)inFile.tellg() / (row + 1)))
+ (((((String("Error: Invalid character \"") += (char)inFile.peek())
+ += "\" at row ") += row) += "\" and column ") += ((int)inFile.tellg() / row))
).get_cstr());
}