Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 567781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:07:12+00:00 2026-05-13T13:07:12+00:00

I don’t see why this error is coming up. Maybe someone else sees it.

  • 0

I don’t see why this error is coming up. Maybe someone else sees it.

Here’s the error.

actor_plazma.c:92: error: incompatible types when initializing type ‘int (*)(struct VisObject *)’ using type ‘float’
actor_plazma.c:92: error: incompatible types when initializing type ‘void *’ using type ‘float’
make: *** [actor_plazma.lo] Error 1

Here’s the related code.

#define VISUAL_PARAM_LIST_ENTRY_FLOAT(name, val, lim)       { name, VISUAL_PARAM_ENTRY_TYPE_FLOAT, 0, val, lim }


#define VISUAL_PARAM_LIMIT_FLOAT(min, max)          { VISUAL_PARAM_ENTRY_LIMIT_TYPE_FLOAT, 0, min, 0, 0, max, 0 }

typedef enum {
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_NULL,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_INTEGER,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_FLOAT,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_DOUBLE,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_END
} VisParamEntryLimitType;

static VisParamEntryProxy params[] = {
    VISUAL_PARAM_LIST_ENTRY_INTEGER ("bass sensitivity",    0,  VISUAL_PARAM_LIMIT_NONE),
    VISUAL_PARAM_LIST_ENTRY_INTEGER ("plazma effect",   TRUE,   VISUAL_PARAM_LIMIT_BOOLEAN),
    VISUAL_PARAM_LIST_ENTRY_INTEGER ("3d effect option",    FALSE,  VISUAL_PARAM_LIMIT_BOOLEAN),
    VISUAL_PARAM_LIST_ENTRY_INTEGER ("lines",       TRUE,   VISUAL_PARAM_LIMIT_BOOLEAN),
    VISUAL_PARAM_LIST_ENTRY_INTEGER ("spectrum",        TRUE,   VISUAL_PARAM_LIMIT_BOOLEAN),
    VISUAL_PARAM_LIST_ENTRY_INTEGER ("3d effect",       TRUE,   VISUAL_PARAM_LIMIT_BOOLEAN),
    VISUAL_PARAM_LIST_ENTRY_FLOAT   ("rotation speed",  0.4,    VISUAL_PARAM_LIMIT_FLOAT(0.0f, 1000.0f)), // line 92
    VISUAL_PARAM_LIST_END
};

Edit: Oops, didn’t include everything:

typedef enum {
    VISUAL_PARAM_ENTRY_TYPE_NULL,       /**< No parameter. */
    VISUAL_PARAM_ENTRY_TYPE_STRING,     /**< String parameter. */
    VISUAL_PARAM_ENTRY_TYPE_INTEGER,    /**< Integer parameter. */
    VISUAL_PARAM_ENTRY_TYPE_FLOAT,      /**< Floating point parameter. */
    VISUAL_PARAM_ENTRY_TYPE_DOUBLE,     /**< Double floating point parameter. */
    VISUAL_PARAM_ENTRY_TYPE_COLOR,      /**< VisColor parameter. */
    VISUAL_PARAM_ENTRY_TYPE_PALETTE,    /**< VisPalette parameter. */
    VISUAL_PARAM_ENTRY_TYPE_OBJECT,     /**< VisObject parameter. */
    VISUAL_PARAM_ENTRY_TYPE_END     /**< List end, and used as terminator for VisParamEntry lists. */
} VisParamEntryType;

typedef enum {
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_NULL,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_INTEGER,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_FLOAT,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_DOUBLE,
    VISUAL_PARAM_ENTRY_LIMIT_TYPE_END
} VisParamEntryLimitType;

struct _VisParamEntryLimitProxy {
    VisParamEntryLimitType  type;

    struct {
        int      integer;       /**< Integer data. */
        float        floating;      /**< Floating point data. */
        double       doubleflt;     /**< Double floating point data. */
    } min;

    struct {
        int      integer;       /**< Integer data. */
        float        floating;      /**< Floating point data. */
        double       doubleflt;     /**< Double floating point data. */
    } max;
};

struct _VisParamEntryProxy {
    const char      *name;

    VisParamEntryType    type;

    char            *string;
    double           value;

    VisColor         color;

    VisParamEntryLimitProxy  limit;
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:07:12+00:00Added an answer on May 13, 2026 at 1:07 pm

    There’s no definition for type VisParamEntryProxy. But, assuming that was a transcription error to here, I think the error is caused by macros only providing 5 or 6 initializers, when the structure needs 7.

    Or, if I’ve mistaken the type chain, then it needs only 6 values. For the latter, you have this:

    #define VISUAL_PARAM_LIST_ENTRY_FLOAT(name, val, lim) { name, VISUAL_PARAM_ENTRY_TYPE_FLOAT, 0, val, lim }
    

    But I think it needs to be something like

    #define VISUAL_PARAM_LIST_ENTRY_FLOAT(name, val, lim) { name, VISUAL_PARAM_ENTRY_TYPE_FLOAT, 0, val, SOMECOLOR, lim}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 325k
  • Answers 325k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you store the result of a.length in variable, it… May 14, 2026 at 1:27 am
  • Editorial Team
    Editorial Team added an answer You can just set the html using .html(), this will… May 14, 2026 at 1:27 am
  • Editorial Team
    Editorial Team added an answer IS the ALTER blocked by metadata shared locks held by… May 14, 2026 at 1:27 am

Related Questions

In order to apply a triggered animation to all ToolTip s in my app,
I've got a string that has curly quotes in it. I'd like to replace
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I don't know when to add to a dataset a tableadapter or a query
I don't edit CSS very often, and almost every time I need to go

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.