summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-06-20 00:28:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-06-20 20:27:49 +0200
commita201159a83c15d2e9d3d027423162acab391cba0 (patch)
tree0634bce04097fcd45e82566d1e507c05340c278f /crawl-ref/source/dlua.cc
parent239738eefd7df21b8298966c3f2194510dfe899a (diff)
downloadcrawl-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/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index 7d7b90c968..4d0b071618 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -76,7 +76,7 @@ void dlua_chunk::write(writer& outf) const
}
marshallString4(outf, file);
- marshallLong(outf, first);
+ marshallInt(outf, first);
}
void dlua_chunk::read(reader& inf)
@@ -95,7 +95,7 @@ void dlua_chunk::read(reader& inf)
break;
}
unmarshallString4(inf, file);
- first = unmarshallLong(inf);
+ first = unmarshallInt(inf);
}
void dlua_chunk::clear()