Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as Nimrod by 1234 ( 6 years ago )
when isMainModule:
    var test = cast[array[4, int8]](64)
    var test1: array[4, int8]
    echo test
    bigEndian64(addr test1, addr test)
    echo test1

expected output when echoing test1:

[0,0,0,64]

actual output:
[0,0,0,0]

 

Revise this Paste

Your Name: Code Language: