From 9cb5426d1eb16647e246b599949b9b2587be702e Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Sat, 31 Mar 2018 20:30:32 +0100 Subject: [PATCH] dml: Fix build error on Travis --- src/dml/Record.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dml/Record.cpp b/src/dml/Record.cpp index 8b204da..f681dfa 100644 --- a/src/dml/Record.cpp +++ b/src/dml/Record.cpp @@ -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;