Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a7b5abc

Browse files
committed
%lld not %Ld
1 parent e1f2188 commit a7b5abc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/configure.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,10 @@ main() {
573573
AC_MSG_RESULT(no),
574574
AC_MSG_RESULT(assuming not on target machine))
575575

576-
AC_MSG_CHECKING(whether 'long long int' is 64 bits using %Ld)
576+
AC_MSG_CHECKING(whether 'long long int' is 64 bits using %lld)
577577
AC_TRY_RUN([#include <stdio.h>
578578
typedef long long int int64;
579-
#define INT64_FORMAT "%Ld"
579+
#define INT64_FORMAT "%lld"
580580

581581
int64 a = 20000001;
582582
int64 b = 40000005;
@@ -606,7 +606,7 @@ int does_int64_work()
606606
main() {
607607
exit(! does_int64_work());
608608
}],
609-
[AC_DEFINE(HAVE_LONG_LONG_INT_64_Ld) AC_MSG_RESULT(yes)],
609+
[AC_DEFINE(HAVE_LONG_LONG_INT_64_lld) AC_MSG_RESULT(yes)],
610610
AC_MSG_RESULT(no),
611611
AC_MSG_RESULT(assuming not on target machine))
612612

src/include/utils/int8.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: int8.h,v 1.5 1998/09/10 03:27:09 momjian Exp $
9+
* $Id: int8.h,v 1.6 1998/09/10 05:36:00 momjian Exp $
1010
*
1111
* NOTES
1212
* These data types are supported on all 64-bit architectures, and may
@@ -29,11 +29,11 @@ typedef long int int64;
2929

3030
#define INT64_FORMAT "%ld"
3131
#else
32-
#ifdef HAVE_LONG_LONG_INT_64_Ld
32+
#ifdef HAVE_LONG_LONG_INT_64_lld
3333
/* We have working support for "long long int", use that */
3434
typedef long long int int64;
3535

36-
#define INT64_FORMAT "%Ld"
36+
#define INT64_FORMAT "%lld"
3737
#else
3838
#ifdef HAVE_LONG_LONG_INT_64_qd
3939
/* We have working support for "long long int", use that */

0 commit comments

Comments
 (0)