6839126: Type error found by newer windows compiler
authorohair
Fri, 08 May 2009 14:33:58 -0700
changeset 2786 81833beba87f
parent 2785 cbf5323db2a4
child 2787 c7bec0cb1e4a
child 2873 96526fe40c0e
6839126: Type error found by newer windows compiler Reviewed-by: never, kvn
hotspot/src/share/vm/adlc/filebuff.hpp
--- a/hotspot/src/share/vm/adlc/filebuff.hpp	Thu May 07 10:30:17 2009 -0700
+++ b/hotspot/src/share/vm/adlc/filebuff.hpp	Fri May 08 14:33:58 2009 -0700
@@ -73,7 +73,7 @@
 
   // 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---------------------------------