Core: Fix casting from array to pointer of same base, improve errors
This commit is contained in:
@@ -52,12 +52,6 @@ Add(&guys, {100, 100})
|
||||
// This generates: int MAP[256] = (int [256]){[0] = 0, [0] = 1}; it doesn't work because of the (int[256]) is this MSVC being retarded here? not supporting C properly?
|
||||
// Also this ^ ^
|
||||
|
||||
// @reproduction
|
||||
// map_data: [16*16]int
|
||||
// map: Map = {data = map_data->*int, 16, 16}
|
||||
//
|
||||
// Failed to cast from [[256]int] to [*int]
|
||||
|
||||
|
||||
#import "raylib.core"
|
||||
#load "array.core"
|
||||
@@ -93,6 +87,7 @@ MouseSelectedActors: Array(*MAP.Actor) // @todo: ids
|
||||
main :: (): int
|
||||
MAP.Init()
|
||||
|
||||
|
||||
// InitAudioDevice()
|
||||
// sound := LoadSound("catune - Pass the town, and to the C.mp3")
|
||||
// SetMasterVolume(0.01)
|
||||
|
||||
Reference in New Issue
Block a user