Mercurial > projects > dwt-win
diff dwt/internal/image/JPEGDecoder.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 41dbc4d9faab |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/internal/image/JPEGDecoder.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/internal/image/JPEGDecoder.d Mon May 05 00:12:38 2008 +0200 @@ -25,6 +25,7 @@ import tango.util.Convert; import Math = tango.math.Math; import dwt.dwthelper.System; +import dwt.dwthelper.utils; public class JPEGDecoder { @@ -2288,7 +2289,7 @@ DWT.error(code); } -static void error(char[] msg) { +static void error(String msg) { DWT.error(DWT.ERROR_INVALID_IMAGE, null, msg); } @@ -5833,7 +5834,7 @@ /* For now, precision must match compiled-in value... */ if (cinfo.data_precision !is BITS_IN_JSAMPLE) - error(" [data precision=" ~ to!(char[])(cinfo.data_precision) ~ "]"); + error(" [data precision=" ~ to!(String)(cinfo.data_precision) ~ "]"); // ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo.data_precision); /* Check that number of components won't exceed internal array sizes */