From 28e12e3ca772ee7ff068a5a3dec64a286e1c6448 Mon Sep 17 00:00:00 2001 From: ohair Date: Fri, 8 May 2009 14:33:58 -0700 Subject: [PATCH] 6839126: Type error found by newer windows compiler Reviewed-by: never, kvn --- src/share/vm/adlc/filebuff.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/adlc/filebuff.hpp b/src/share/vm/adlc/filebuff.hpp index 6967d64a3..30e567b3a 100644 --- a/src/share/vm/adlc/filebuff.hpp +++ b/src/share/vm/adlc/filebuff.hpp @@ -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--------------------------------- -- GitLab