commit | 6ffb09171960e776466b963e51196565a033998c | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Jan 16 13:17:03 2014 +0000 |
committer | Narayan Kamath <narayan@google.com> | Thu Jan 16 13:18:28 2014 +0000 |
tree | e7787c889ec33e406fe7efabf835d92361e6d8af | |
parent | 486544f763bd27eb92c95101e23f939c79c9890e [diff] |
Fix error checking in MemoryFile. mmap returns MAP_FAILED on failures, not 0 (NULL). Also, convert some C style casts to C++ since they make intent clearer. Change-Id: I367993c73e9ee576f11ebe76e530d2c2f27c662d