From c32a13e7c6d3aa56ad5a05dd5a630972cc54a527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Fri, 16 Jan 2004 21:19:41 +0000 Subject: [PATCH] be freq_t type agnostic git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1651 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/testfreq.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/testfreq.c b/tests/testfreq.c index 1551e6690..6d3b7a91a 100644 --- a/tests/testfreq.c +++ b/tests/testfreq.c @@ -32,27 +32,27 @@ int main (int argc, char *argv[]) /* freq on 31bits test */ f = GHz(2); - printf("GHz(2) = %lld\n", f); + printf("GHz(2) = %lld\n", (long long)f); /* freq on 32bits test */ f = GHz(4); - printf("GHz(4) = %lld\n", f); + printf("GHz(4) = %lld\n", (long long)f); /* freq on >32bits test */ f = GHz(5); - printf("GHz(5) = %lld\n", f); + printf("GHz(5) = %lld\n", (long long)f); /* floating point to freq conversion test */ f = GHz(1.3); - printf("GHz(1.3) = %lld\n", f); + printf("GHz(1.3) = %lld\n", (long long)f); /* floating point to freq conversion precision test */ f = GHz(1.234567890); - printf("GHz(1.234567890) = %lld\n", f); + printf("GHz(1.234567890) = %lld\n", (long long)f); /* floating point to freq conversion precision test, with freq >32bits */ f = GHz(123.456789012); - printf("GHz(123.456789012) = %lld\n", f); + printf("GHz(123.456789012) = %lld\n", (long long)f); return 0; }