diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-18 22:41:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-18 22:41:02 +0000 |
commit | acdd018be3d07340f22cd020a0e4d5227007c199 (patch) | |
tree | 3f3936943a167806b2a9e02376d266ef248a49f0 /lib/libkeynote/keynote.y | |
parent | 2a73d8edb2be731bc3a885f71bc315e06a3c1598 (diff) |
no, size_t can be unsigned long or int
Diffstat (limited to 'lib/libkeynote/keynote.y')
-rw-r--r-- | lib/libkeynote/keynote.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkeynote/keynote.y b/lib/libkeynote/keynote.y index 9f2fde6406e..fc653a73ffa 100644 --- a/lib/libkeynote/keynote.y +++ b/lib/libkeynote/keynote.y @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote.y,v 1.9 2001/07/06 23:51:29 millert Exp $ */ +/* $OpenBSD: keynote.y,v 1.10 2001/07/18 22:41:01 deraadt Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -530,10 +530,10 @@ stringexp: str EQ str { if (i == 0) { #if !defined(HAVE_SNPRINTF) - sprintf(grp, "%lu", preg.re_nsub); + sprintf(grp, "%lu", (unsigned long)preg.re_nsub); #else /* !HAVE_SNPRINTF */ - snprintf(grp, 3, "%lu", preg.re_nsub); -#endif /* !HAVE_SNPRINTF */ + snprintf(grp, 3, "%lu", (unsigned long)preg.re_nsub); +#endif /* !HAVE_SNPRINTF */ if (keynote_env_add("_0", grp, &keynote_temp_list, 1, 0) != RESULT_TRUE) { |