changeset 20:aabb32732ad3 trunk

[svn] I hate macros.
author nenolod
date Mon, 24 Oct 2005 20:04:14 -0700
parents a3913b2d0acd
children 26e98cee788f
files Input/aac/libmp4v2/mp4file_io.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Input/aac/libmp4v2/mp4file_io.cpp	Mon Oct 24 16:57:20 2005 -0700
+++ b/Input/aac/libmp4v2/mp4file_io.cpp	Mon Oct 24 20:04:14 2005 -0700
@@ -36,7 +36,7 @@
 			throw new MP4Error(errno, "MP4GetPosition");
 		}
 		uint64_t ret;
-		FPOS_TO_VAR(fpos, uint64_t, ret);
+		ret = (u_int64_t) fpos;
 		return ret;
 	} else {
 		return m_memoryBufferPosition;
@@ -51,8 +51,7 @@
 			pFile = m_pFile;
 		}
 
-		fpos_t fpos;
-		VAR_TO_FPOS(fpos, pos);
+		fpos_t fpos = (fpos_t) pos;
 		if (fsetpos(pFile, &fpos) < 0) {
 			throw new MP4Error(errno, "MP4SetPosition");
 		}