mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 20:14:43 +02:00
6839126: Type error found by newer windows compiler
Reviewed-by: never, kvn
This commit is contained in:
parent
e53c553749
commit
a3ead33c8d
1 changed files with 1 additions and 1 deletions
|
@ -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---------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue