1.1 --- a/src/share/vm/adlc/filebuff.hpp Thu May 07 10:30:17 2009 -0700 1.2 +++ b/src/share/vm/adlc/filebuff.hpp Fri May 08 14:33:58 2009 -0700 1.3 @@ -73,7 +73,7 @@ 1.4 1.5 // This converts a pointer into the buffer to a file offset. It only works 1.6 // when the pointer is valid (i.e. just obtained from getline()). 1.7 - long getoff(const char* s) { return _bufoff + (s - _buf); } 1.8 + long getoff(const char* s) { return _bufoff + (long)(s - _buf); } 1.9 }; 1.10 1.11 //------------------------------FileBuffRegion---------------------------------