Mercurial > projects > dwt-addons
diff dwtx/jface/text/GapTextStore.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 75302ef3f92f |
line wrap: on
line diff
--- a/dwtx/jface/text/GapTextStore.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/GapTextStore.d Sun Aug 24 01:46:20 2008 +0200 @@ -419,7 +419,7 @@ // the new content length (without any gap) final int newLength= fContent.length - newGapSize; // the new array size based on the gap factor - int newArraySize= (int) (newLength * fSizeMultiplier); + int newArraySize= cast(int) (newLength * fSizeMultiplier); newGapSize= newArraySize - newLength; // bound the gap size within min/max