Re: Problems with C floats

new topic     » goto parent     » topic index » view thread      » older message » newer message

Your tests work. This is a different problem - many GTK routines return 2 or more values, as follows:

void                gtk_window_get_default_size         (GtkWindow *window, 
                                                         gint *width, 
                                                         gint *height); 
By allocating variables and passing them to the routine, they get filled in with the current values. This works fine as long as the vars are integers, pointers, or doubles, but when they are floats, I get an machine exception. I tried using safe.e, but can't see anything there to help. Perhaps this is related to the previous problem when passing floats to a c routine?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu