From 831c122d0604785c48915317578172bdda8eb5db Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Fri, 1 Mar 2013 20:34:01 -0800 Subject: [PATCH] Placating the compiler playing dumb about types --- cpp/ycm/LetterNodeListMap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/ycm/LetterNodeListMap.cpp b/cpp/ycm/LetterNodeListMap.cpp index 13c207ec..0f129d77 100644 --- a/cpp/ycm/LetterNodeListMap.cpp +++ b/cpp/ycm/LetterNodeListMap.cpp @@ -40,7 +40,9 @@ int IndexForChar( char letter ) { LetterNodeListMap::LetterNodeListMap() { - std::fill( letters_.begin(), letters_.end(), NULL ); + std::fill( letters_.begin(), + letters_.end(), + static_cast< std::list< LetterNode * >* >( NULL ) ); }