igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] C code on attributes is confusing me


From: Gábor Csárdi
Subject: Re: [igraph] C code on attributes is confusing me
Date: Tue, 19 Apr 2011 07:47:51 -0400

Hi,

On Tue, Apr 19, 2011 at 7:37 AM, Marco <address@hidden> wrote:
[...]
>    fprintf(stderr, "%d, %d\n", (int) IGRAPH_VIT_GET(g_vit),VAN(&graph,state,
> (int) IGRAPH_VIT_GET(g_vit)));
>    IGRAPH_VIT_NEXT(g_vit);
[...]

VAN() returns a double, convert the result to an int, or use %g instead of %d.

Btw. it is really worth turning on compiler warnings, gcc gives a
warning for this one.


Gabor

-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

[Prev in Thread] Current Thread [Next in Thread]