windows-doesnt-always-have-long-long-20030923
authorRobert A Basch <rbasch@mit.edu>
Tue, 23 Sep 2003 22:44:16 +0000 (22:44 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Tue, 23 Sep 2003 22:44:16 +0000 (22:44 +0000)
Still can't assume long long exists; can break Windows build.

src/util/snprintf.c

index 6ad2610..a648f52 100644 (file)
@@ -447,7 +447,7 @@ afs_vsnprintf(char *p, size_t avail, const char *fmt, va_list ap)
        case 'n':               /* report count so far */
            if (lflag > 1) {
                llcountp = va_arg(ap, afs_intmax_t *);
-               *llcountp = (long long)count;
+               *llcountp = (afs_intmax_t)count;
            } else if (lflag) {
                lcountp = va_arg(ap, long *);
                *lcountp = (long)count;