diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-25 15:50:31 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-25 15:50:31 (GMT) |
| commit | d1b95c26242ba247ebd5656c430b01943b24a728 (patch) | |
| tree | 26c5c0b5eaf670ef056dce7a854d0fe2f43d9299 | |
| parent | da06343b0b1801e88d0f0ebaa60d1559d75e063b (diff) | |
| download | tcl-d1b95c26242ba247ebd5656c430b01943b24a728.zip tcl-d1b95c26242ba247ebd5656c430b01943b24a728.tar.gz tcl-d1b95c26242ba247ebd5656c430b01943b24a728.tar.bz2 | |
Change int constants into char constants. Hopefully this eliminates C4305 warnings on MSVC 6.0
| -rw-r--r-- | generic/tclZipfs.c | 7 | ||||
| -rw-r--r-- | win/tclWinPanic.c | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index 3d1941c..6a568fe 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -283,10 +283,9 @@ static struct { * For password rotation. */ -static const char pwrot[16] = { - 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, - 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0 -}; +static const char pwrot[16] = + "\x00\x80\x40\xC0\x20\xA0\x60\xE0" + "\x10\x90\x50\xD0\x30\xB0\x70\xF0"; /* * Table to compute CRC32. diff --git a/win/tclWinPanic.c b/win/tclWinPanic.c index a71f506..5c6e02d 100644 --- a/win/tclWinPanic.c +++ b/win/tclWinPanic.c @@ -58,7 +58,7 @@ Tcl_ConsolePanic( } else if (_isatty(2)) { WriteConsoleW(handle, msgString, wcslen(msgString), &dummy, 0); } else { - buf[0] = 0xEF; buf[1] = 0xBB; buf[2] = 0xBF; /* UTF-8 bom */ + buf[0] = '\xEF'; buf[1] = '\xBB'; buf[2] = '\xBF'; /* UTF-8 bom */ WriteFile(handle, buf, strlen(buf), &dummy, 0); WriteFile(handle, "\n", 1, &dummy, 0); FlushFileBuffers(handle); |
