[beast/devel: 2/35] SFI: define SfiTime and SfiNum as "long long int", to match its common use
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast/devel: 2/35] SFI: define SfiTime and SfiNum as "long long int", to match its common use
- Date: Tue, 14 May 2013 19:38:05 +0000 (UTC)
commit 953c086d49c57aefaa2bc7ce687c083273d435db
Author: Tim Janik <timj gnu org>
Date: Sun May 12 04:30:05 2013 +0200
SFI: define SfiTime and SfiNum as "long long int", to match its common use
sfi/sfitypes.hh | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/sfi/sfitypes.hh b/sfi/sfitypes.hh
index 83ef35f..95b8c5f 100644
--- a/sfi/sfitypes.hh
+++ b/sfi/sfitypes.hh
@@ -12,10 +12,12 @@ typedef bool SfiBool;
typedef gint SfiInt;
#define SFI_MAXINT (+2147483647)
#define SFI_MININT (-SFI_MAXINT - 1)
-typedef int64 SfiNum;
+typedef long long int SfiNum;
+static_assert (sizeof (SfiNum) == 8, "SfiNum");
#define SFI_MAXNUM ((SfiNum) +9223372036854775807LL)
#define SFI_MINNUM (-SFI_MAXNUM - 1)
-typedef int64 SfiTime;
+typedef long long int SfiTime;
+static_assert (sizeof (SfiTime) == 8, "SfiTime");
typedef SfiInt SfiNote;
typedef double SfiReal;
#define SFI_MINREAL (2.2250738585072014e-308) /* IEEE754 double */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]