mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
Fix the printing of integers.
Because yes, multiples of 10 would not print... Change-Id: Id58305086d499eb091ea5612fedcc5ec6f25c415
This commit is contained in:
@@ -326,7 +326,8 @@ ExpressionLayout * Integer::createLayout() {
|
||||
Integer base = Integer(10);
|
||||
Division d = Division(*this, base);
|
||||
int size = 0;
|
||||
while (!(d.m_remainder == Integer((native_int_t)0))) {
|
||||
while (!(d.m_remainder == Integer((native_int_t)0) &&
|
||||
d.m_quotient == Integer((native_int_t)0))) {
|
||||
assert(size<255); //TODO: malloc an extra buffer
|
||||
char c = char_from_digit(d.m_remainder.m_digits[0]);
|
||||
buffer[size++] = c;
|
||||
|
||||
Reference in New Issue
Block a user