Fix gcc2 build.

This commit is contained in:
Rene Gollent 2013-09-16 22:38:29 +02:00
parent f7628f839d
commit 72b9e4a7bc

View File

@ -660,7 +660,7 @@ MemoryView::_GetOffsetAt(BPoint point) const
if (fHexMode == HexModeNone)
return -1;
int32 lineNumber = point.y / fLineHeight;
int32 lineNumber = int32(point.y / fLineHeight);
int32 charsPerBlock = _GetHexDigitsPerBlock() / 2;
int32 totalHexBlocks = fTargetBlock->Size() / charsPerBlock;
int32 lineCount = totalHexBlocks / fHexBlocksPerLine;