Fix OS X compilation

This commit is contained in:
ridiculousfish
2012-08-05 12:05:05 -07:00
parent fdc6c3722a
commit 8de8877c7c
2 changed files with 4 additions and 4 deletions

View File

@@ -2744,7 +2744,7 @@ const wchar_t *reader_readline()
if( *begin == L'\n' )
begin++;
size_t len = maxi( end-begin, 1 );
size_t len = maxi<size_t>( end-begin, 1 );
begin = end - len;
reader_kill( begin - buff, len, KILL_PREPEND, last_char!=R_BACKWARD_KILL_LINE );
@@ -2767,7 +2767,7 @@ const wchar_t *reader_readline()
if( *begin == L'\n' )
begin++;
len = maxi( end-begin, 0 );
len = maxi<size_t>( end-begin, 0 );
begin = end - len;
while( *end && *end != L'\n' )