Permalink
Browse files

[PMC] Fixed a couple of casting warnings of function return values.

git-svn-id: https://svn.parrot.org/parrot/trunk@20683 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 78e360e commit 8275ff5fada1c0d15ced43efb8a8f9216e53281b @chromatic chromatic committed Aug 18, 2007
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/pmc/fixedfloatarray.pmc
  2. +2 −1 src/pmc/fixedintegerarray.pmc
@@ -154,7 +154,8 @@ Returns the integer value of the element at index C<key>.
*/
INTVAL get_integer_keyed_int(INTVAL key) {
- return (INTVAL)DYNSELF.get_number_keyed_int(key);
+ FLOATVAL f = DYNSELF.get_number_keyed_int(key);
+ return (INTVAL)f;
}
/*
@@ -279,7 +279,8 @@ Returns the floating-point value of the element at index C<key>.
*/
FLOATVAL get_number_keyed_int(INTVAL key) {
- return (FLOATVAL)DYNSELF.get_integer_keyed_int(key);
+ INTVAL i = DYNSELF.get_integer_keyed_int(key);
+ return (FLOATVAL)i;
}
/*

0 comments on commit 8275ff5

Please sign in to comment.