6839126: Type error found by newer windows compiler

Fri, 08 May 2009 14:33:58 -0700

author
ohair
date
Fri, 08 May 2009 14:33:58 -0700
changeset 1204
116b019a3961
parent 1203
7a485bc4da16
child 1205
f5ee65f94d9a
child 1221
27d660246893

6839126: Type error found by newer windows compiler
Reviewed-by: never, kvn

src/share/vm/adlc/filebuff.hpp file | annotate | diff | comparison | revisions
     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---------------------------------

mercurial