* [Qemu-devel] [PATCH] Fix compilation of check-qint.c by using a long long integer constant
@ 2009-09-04 17:01 Pierre Riteau
2009-09-04 17:18 ` Pierre Riteau
0 siblings, 1 reply; 2+ messages in thread
From: Pierre Riteau @ 2009-09-04 17:01 UTC (permalink / raw)
To: qemu-devel; +Cc: Pierre Riteau
Error was:
check-qint.c:46: error: integer constant is too large for 'long' type
---
check-qint.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/check-qint.c b/check-qint.c
index ae5d22f..b931d47 100644
--- a/check-qint.c
+++ b/check-qint.c
@@ -43,7 +43,7 @@ END_TEST
START_TEST(qint_from_int64_test)
{
QInt *qi;
- const int64_t value = 0xffffffffffffffff;
+ const int64_t value = 0xfffffffffffffffLL;
qi = qint_from_int(value);
fail_unless(qi->value == value);
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix compilation of check-qint.c by using a long long integer constant
2009-09-04 17:01 [Qemu-devel] [PATCH] Fix compilation of check-qint.c by using a long long integer constant Pierre Riteau
@ 2009-09-04 17:18 ` Pierre Riteau
0 siblings, 0 replies; 2+ messages in thread
From: Pierre Riteau @ 2009-09-04 17:18 UTC (permalink / raw)
To: qemu-devel
On 4 sept. 09, at 19:01, Pierre Riteau wrote:
> Error was:
> check-qint.c:46: error: integer constant is too large for 'long' type
> ---
> check-qint.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/check-qint.c b/check-qint.c
> index ae5d22f..b931d47 100644
> --- a/check-qint.c
> +++ b/check-qint.c
> @@ -43,7 +43,7 @@ END_TEST
> START_TEST(qint_from_int64_test)
> {
> QInt *qi;
> - const int64_t value = 0xffffffffffffffff;
> + const int64_t value = 0xfffffffffffffffLL;
>
> qi = qint_from_int(value);
> fail_unless(qi->value == value);
> --
> 1.5.6.5
>
>
>
Please disregard this version as I erased a character by mistake.
New version sent to the list already.
--
Pierre Riteau -- http://perso.univ-rennes1.fr/pierre.riteau/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-04 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-04 17:01 [Qemu-devel] [PATCH] Fix compilation of check-qint.c by using a long long integer constant Pierre Riteau
2009-09-04 17:18 ` Pierre Riteau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).