Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [hwloc-devel] hwloc-1.7 Warnings on FreeBSD
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2013-05-03 04:50:55

Pavan Balaji, le Fri 03 May 2013 06:45:10 +0200, a écrit :
> -Wbad-function-cast'.
> lstopo-draw.c:437: warning: cast from function call of type 'double' to
> non-matching type 'unsigned int'

I'm not sure to understand what one is supposed to do here.
double->float->unsigned is less precise than double->unsigned. I
don't know any standard function that would do the double->unsigned
conversion, thus simply casting, which should already be doing the job
exactly how we want, anyway...