[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug #4697] [PNET][PNET/C][TYPECONVERSION][FUNCTIONPOI
From: |
nobody |
Subject: |
[Pnet-developers] [bug #4697] [PNET][PNET/C][TYPECONVERSION][FUNCTIONPOINTER]no conversion from `int * (float *, float *)' to `int * (void *, void *)' |
Date: |
Thu, 02 Oct 2003 20:32:08 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 |
=================== BUG #4697: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4697&group_id=353
Changes by: Rhys Weatherley <address@hidden>
Date: Fri 10/03/2003 at 00:32 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
Fix committed to CVS - 3 Oct 2003
=================== BUG #4697: FULL BUG SNAPSHOT ===================
Submitted by: mdupont Project: DotGNU Portable.NET
Submitted on: Sun 08/10/2003 at 10:10
Category: None Severity: 5 - Major
Bug Group: None Resolution: Fixed
Assigned to: None Status: Closed
Summary: [PNET][PNET/C][TYPECONVERSION][FUNCTIONPOINTER]no conversion from
`int * (float *, float *)' to `int * (void *, void *)'
Original Submission: /*
simple test of type conversion of parameters
It seems that this bug prevents qsort to be used effectivly
*/
typedef unsigned int size_t;
typedef int (*__compar_fn_t) (/*__const*/ void *, /*__const*/ void *);
extern void qsort (void *__base, size_t __nmemb, size_t __size,
__compar_fn_t __compar);
static int compare_pos (const float *a, const float *b)
{
return 1;
}
int main()
{
int i;
static float *save_array = ((void *)0);
qsort(save_array,i, sizeof(float),
(int (*) (const void *, const void *))compare_pos);
//CSCC: no conversion from `int * (float *, float *)' to `int * (void *, void
*)'
//GCC: warning: passing arg 4 of `qsort' from incompatible pointer type
// here I try to pass it directly
qsort(save_array,i, sizeof(float),
compare_pos);
// incompatible type for argument 4 of `qsort'
}
Follow-up Comments
*******************
-------------------------------------------------------
Date: Fri 10/03/2003 at 00:32 By: rweather
Fix committed to CVS - 3 Oct 2003
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4697&group_id=353
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bug #4697] [PNET][PNET/C][TYPECONVERSION][FUNCTIONPOINTER]no conversion from `int * (float *, float *)' to `int * (void *, void *)',
nobody <=