6839126: Type error found by newer windows compiler

Reviewed-by: never, kvn
This commit is contained in:
Kelly O'Hair 2009-05-08 14:33:58 -07:00
parent e53c553749
commit a3ead33c8d

View File

@ -73,7 +73,7 @@ class FileBuff {
// This converts a pointer into the buffer to a file offset. It only works
// when the pointer is valid (i.e. just obtained from getline()).
long getoff(const char* s) { return _bufoff + (s - _buf); }
long getoff(const char* s) { return _bufoff + (long)(s - _buf); }
};
//------------------------------FileBuffRegion---------------------------------