Discussion:
[Freetel-codec2] (no subject)
Maxime Guyon
2017-03-15 12:12:17 UTC
Permalink
Hello,

I noticed a warning when compiling codebook file "codebookjnd.c"
because at line 3491 a double value is stored into an int.:

/* ../unittest/lspjnd5-10.txt */

{
6,
*11.7181,*
3369,
codes4
},
{ 0, 0, 0, 0 }
};

It fire the following warning:

Warning:(3491, 5) warning: implicit conversion from 'double' to 'int'
changes value from 11.7181 to 11 [-Wliteral-conversion]
Is this normal?
David Rowe
2017-03-16 00:55:45 UTC
Permalink
That's some old experimental code we don't need any more so I've removed
that and a few other unittests, plus fixed a few warnings. all checked
into codec2-dev

- David
Post by Maxime Guyon
Hello,
I noticed a warning when compiling codebook file "codebookjnd.c"
/* ../unittest/lspjnd5-10.txt */
{
6,
*11.7181,*
3369,
codes4
},
{ 0, 0, 0, 0 }
};
Warning:(3491, 5) warning: implicit conversion from 'double' to
'int' changes value from 11.7181 to 11 [-Wliteral-conversion]
Is this normal?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Maxime Guyon
2017-03-16 08:14:45 UTC
Permalink
Thank you for that!
I will checkout that.

PS: Sorry for the message without subject. :-/
Post by David Rowe
That's some old experimental code we don't need any more so I've removed
that and a few other unittests, plus fixed a few warnings. all checked
into codec2-dev
- David
Post by Maxime Guyon
Hello,
I noticed a warning when compiling codebook file "codebookjnd.c"
/* ../unittest/lspjnd5-10.txt */
{
6,
*11.7181,*
3369,
codes4
},
{ 0, 0, 0, 0 }
};
Warning:(3491, 5) warning: implicit conversion from 'double' to
'int' changes value from 11.7181 to 11 [-Wliteral-conversion]
Is this normal?
------------------------------------------------------------
------------------
Post by Maxime Guyon
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
https://lists.sourceforge.net/lists/listinfo/freetel-codec2
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freetel-codec2 mailing list
https://lists.sourceforge.net/lists/listinfo/freetel-codec2
Loading...