You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My fix to getEnv in #2817 left the cast to string (:string) since this is what the old code did. But due to the c_string deprecation this was returning a string of the pointer instead
So instead of getting something like "MY_ENV_VAL" I would get "0x16b167e28"
This PR (fixes#2849) since `c_string` has been deprecated we need to use `string.createCopyingBuffer` instead of casting
Co-authored-by: Pierce Hayes <[email protected]>
This was brought to my attention by @hokiegeek2
My fix to
getEnv
in #2817 left the cast to string (:string
) since this is what the old code did. But due to thec_string
deprecation this was returning a string of the pointer insteadSo instead of getting something like
"MY_ENV_VAL"
I would get"0x16b167e28"
After finding the below link, I found that I need to use
string.createCopyingBuffer
insteadhttps://chapel-lang.org/docs/language/evolution.html#c-string-deprecation
The text was updated successfully, but these errors were encountered: