6839126: Type error found by newer windows compiler
authorohair
Fri May 08 14:33:58 2009 -0700 (10 months ago)
changeset 787116b019a3961
parent 7867a485bc4da16
child 78827d660246893
child 803f5ee65f94d9a
6839126: Type error found by newer windows compiler
Reviewed-by: never, kvn
src/share/vm/adlc/filebuff.hpp
--- a/src/share/vm/adlc/filebuff.hpp Thu May 07 10:30:17 2009 -0700
+++ b/src/share/vm/adlc/filebuff.hpp Fri May 08 14:33:58 2009 -0700
@@ -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---------------------------------