diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-06-20 00:28:11 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-06-20 20:27:49 +0200 |
commit | a201159a83c15d2e9d3d027423162acab391cba0 (patch) | |
tree | 0634bce04097fcd45e82566d1e507c05340c278f /crawl-ref/source/store.cc | |
parent | 239738eefd7df21b8298966c3f2194510dfe899a (diff) | |
download | crawl-ref-a201159a83c15d2e9d3d027423162acab391cba0.tar.gz crawl-ref-a201159a83c15d2e9d3d027423162acab391cba0.zip |
s/marshallLong/marshallInt/, since this confusion tends to cause bugs.
Actually, it should be named marshallInt32_t as that's what it does, but
that's hard to read, no architecture with smaller ints can conceivably run
Crawl and the only architecture with bigger ints is long dead. And in even
in such a case, everything will be fine except for name confusion...
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r-- | crawl-ref/source/store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc index be52a7da6c..0ce1ddd871 100644 --- a/crawl-ref/source/store.cc +++ b/crawl-ref/source/store.cc @@ -483,7 +483,7 @@ void CrawlStoreValue::write(writer &th) const break; case SV_LONG: - marshallLong(th, val._long); + marshallInt(th, val._long); break; case SV_FLOAT: @@ -584,7 +584,7 @@ void CrawlStoreValue::read(reader &th) break; case SV_LONG: - val._long = unmarshallLong(th); + val._long = unmarshallInt(th); break; case SV_FLOAT: |