Fix warnings.

compareing an int to an unsigned value.

Change-Id: I718d83b594a0c7e05aacfde35251df0be66de687
This commit is contained in:
Felix Raimundo
2016-03-25 12:23:06 +01:00
parent 3710103f40
commit ebf03464fa
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;