fix warning with old compilers

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2663 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.9
Stéphane Fillod, F8CFE 2009-02-23 21:53:51 +00:00
rodzic 951c9acb74
commit f1dabb7346
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib Racal backend - main file
* Copyright (c) 2004 by Stephane Fillod
* Copyright (c) 2004-2009 by Stephane Fillod
*
* $Id: racal.c,v 1.1 2004-09-12 21:28:26 fillods Exp $
* $Id: racal.c,v 1.2 2009-02-23 21:53:51 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -267,7 +267,7 @@ int racal_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
if (width == RIG_PASSBAND_NORMAL)
width = rig_passband_normal(rig, mode);
sprintf(buf, "D%dI%.f", ra_mode, (double)(width/kHz(1)));
sprintf(buf, "D%dI%.0f", ra_mode, (double)(width/kHz(1)));
return racal_transaction (rig, buf, NULL, NULL);
}