summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-10-04 15:33:13 +0000
committerrubidium <rubidium@openttd.org>2012-10-04 15:33:13 +0000
commitd49bd2997b34c53630d2b6f7e450762d786f9576 (patch)
tree9b5161f0dc2ad564ebff257d14d05db2ae4632e5 /src/os
parent0856668f442746887e3a2f3a2f8f9c1274652f0a (diff)
downloadopenttd-d49bd2997b34c53630d2b6f7e450762d786f9576.tar.xz
(svn r24572) -Fix: do not cast away some other consts
Diffstat (limited to 'src/os')
-rw-r--r--src/os/windows/win32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp
index dc38a69b3..065ed3737 100644
--- a/src/os/windows/win32.cpp
+++ b/src/os/windows/win32.cpp
@@ -239,7 +239,7 @@ bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb
* http://www.gamedev.net/community/forums/topic.asp?topic_id=294070&whichpage=1&#1860504
* XXX - not entirely correct, since filetimes on FAT aren't UTC but local,
* this won't entirely be correct, but we use the time only for comparsion. */
- sb->st_mtime = (time_t)((*(uint64*)&fd->ftLastWriteTime - posix_epoch_hns) / 1E7);
+ sb->st_mtime = (time_t)((*(const uint64*)&fd->ftLastWriteTime - posix_epoch_hns) / 1E7);
sb->st_mode = (fd->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)? S_IFDIR : S_IFREG;
return true;
@@ -560,7 +560,7 @@ bool GetClipboardContents(char *buffer, size_t buff_len)
cbuf = GetClipboardData(CF_UNICODETEXT);
ptr = (const char*)GlobalLock(cbuf);
- const char *ret = convert_from_fs((wchar_t*)ptr, buffer, buff_len);
+ const char *ret = convert_from_fs((const wchar_t*)ptr, buffer, buff_len);
GlobalUnlock(cbuf);
CloseClipboard();