dml: Fix build error on Travis

This commit is contained in:
Joshua Scott 2018-03-31 20:30:32 +01:00
parent cad6f44208
commit 9cb5426d1e
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ namespace dml
// Since the types are different, we can't set the value
// of the old field to the value of the new one so,
// replace the old field with this new one instead.
ptrdiff_t index = std::find(
const std::ptrdiff_t index = std::find(
m_fields.begin(), m_fields.end(), old_field) - m_fields.begin();
m_fields[index] = field;
m_field_map[field->get_name()] = field;