Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C Error on invalid uint -> set cast #3540

Open
Wh1teDuke opened this issue Nov 12, 2015 · 0 comments
Open

C Error on invalid uint -> set cast #3540

Wh1teDuke opened this issue Nov 12, 2015 · 0 comments

Comments

@Wh1teDuke
Copy link
Contributor

Test

let 
  a = {'a', 'b'}
  b = cast[uint8](a)
  c = cast[set[char]](b)  # Error here

Result

error: cast specifies array type
  memcpy((void*)c_97014, (NIM_CONST void*)((TY82458) (b_97008)), 32);
                                           ^

>nim -v
Nim Compiler Version 0.12.1 (2015-11-07) [Windows: i386]
Copyright (c) 2006-2015 by Andreas Rumpf

git hash: c83e4390d863ab1f2d0ad4ab5417352f1ffd8f04
active boot switches: -d:release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants