X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Finteger-format.c;h=fb1851fd886c6dae95da7adac6d404b338936f60;hb=cfe65232ff4bf28987ff1c1d02c9ec385de3c4af;hp=c248e0ff042b8c765ebe5724d3aa82d7e278a76c;hpb=81579d9e9f994fb2908f50af41c3eb033d216e58;p=pspp diff --git a/src/libpspp/integer-format.c b/src/libpspp/integer-format.c index c248e0ff04..fb1851fd88 100644 --- a/src/libpspp/integer-format.c +++ b/src/libpspp/integer-format.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2006, 2010, 2011, 2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -84,7 +84,7 @@ integer_put (uint64_t value, enum integer_format format, void *to_, size_t cnt) size_t i; assert (is_integer_format (format)); - assert (cnt < 8); + assert (cnt <= 8); value <<= 8 * (8 - cnt);