Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Add explicit cast to fix lint error on 32bit ...
details: https://anonhg.NetBSD.org/src/rev/b544d522b151
branches: trunk
changeset: 757825:b544d522b151
user: tron <tron%NetBSD.org@localhost>
date: Sat Sep 25 13:45:11 2010 +0000
description:
Add explicit cast to fix lint error on 32bit platforms.
diffstat:
lib/libc/stdio/fmemopen.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6731e04cd257 -r b544d522b151 lib/libc/stdio/fmemopen.c
--- a/lib/libc/stdio/fmemopen.c Sat Sep 25 10:35:59 2010 +0000
+++ b/lib/libc/stdio/fmemopen.c Sat Sep 25 13:45:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fmemopen.c,v 1.1 2010/09/24 09:21:53 tnozaki Exp $ */
+/* $NetBSD: fmemopen.c,v 1.2 2010/09/25 13:45:11 tron Exp $ */
/*-
* Copyright (c)2007, 2010 Takehiko NOZAKI,
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fmemopen.c,v 1.1 2010/09/24 09:21:53 tnozaki Exp $");
+__RCSID("$NetBSD: fmemopen.c,v 1.2 2010/09/25 13:45:11 tron Exp $");
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
@@ -116,7 +116,7 @@
goto error;
}
if (offset >= (fpos_t)0 && offset <= p->tail - p->head) {
- p->cur = p->head + offset;
+ p->cur = p->head + (intptr_t)offset;
return (fpos_t)(p->cur - p->head);
}
error:
Home |
Main Index |
Thread Index |
Old Index