mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
Fix warnings.
compareing an int to an unsigned value. Change-Id: I718d83b594a0c7e05aacfde35251df0be66de687
This commit is contained in:
@@ -268,7 +268,7 @@ Expression * Integer::clone() {
|
||||
clone->m_negative = m_negative;
|
||||
free(clone->m_digits);
|
||||
clone->m_digits = (native_uint_t *)malloc(m_numberOfDigits*sizeof(native_uint_t));
|
||||
for (int i=0;i<m_numberOfDigits; i++) {
|
||||
for (unsigned int i=0;i<m_numberOfDigits; i++) {
|
||||
clone->m_digits[i] = m_digits[i];
|
||||
}
|
||||
return clone;
|
||||
|
||||
@@ -37,8 +37,8 @@ KDSize HorizontalLayout::computeSize() {
|
||||
}
|
||||
|
||||
ExpressionLayout * HorizontalLayout::child(uint16_t index) {
|
||||
assert(index <= m_number_of_children);
|
||||
if (index < m_number_of_children) {
|
||||
assert(index <= (unsigned int) m_number_of_children);
|
||||
if (index < (unsigned int) m_number_of_children) {
|
||||
return m_children_layouts[index];
|
||||
} else {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user