Skip to content

so_R_f32_f32 undeclared #62

@BrownNPC

Description

@BrownNPC
/home/linus/coding/MagicBetaClient/build/transpiled/gfx/gfx.c:2001:13: error: ‘so_R_f32_f32’ undeclared (first use in this function); did you mean ‘so_R_u32_u32’?
 2001 |     return (so_R_f32_f32){.val = (float)(sind), .val2 = (float)(cosd)};
      |             ^~~~~~~~~~~~
      |             so_R_u32_u32

reproduce

import (
	"solod.dev/so/math"
)
func sincos(angle float32) (float32, float32) {
	sind := math.Sin(float64(angle))
	cosd := math.Cos(float64(angle))
	return float32(sind), float32(cosd)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions