diff options
author | Maurizio Tomasi <ziotom78@gmail.com> | 2015-03-11 11:08:37 +0100 |
---|---|---|
committer | Maurizio Tomasi <ziotom78@gmail.com> | 2015-03-11 11:08:37 +0100 |
commit | cf1a801e314982d099f72760745edd0a24d47ecb (patch) | |
tree | 09b6116a70a12ca86362981d2f0e60678f9fb29f /lib/pure | |
parent | 9c113b52643beafcb102942b0c13ed68d965a602 (diff) | |
download | Nim-cf1a801e314982d099f72760745edd0a24d47ecb.tar.gz |
New template `fpRadix` instead of the exported var `FP_RADIX`
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/fenv.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/fenv.nim b/lib/pure/fenv.nim index afb3fb8fe..fd0eab310 100644 --- a/lib/pure/fenv.nim +++ b/lib/pure/fenv.nim @@ -102,7 +102,9 @@ proc feupdateenv*(envp: ptr Tfenv): cint {.importc, header: "<fenv.h>".} ## represented by object pointed to by `envp` and raise exceptions ## according to saved exceptions. -var FP_RADIX* {. importc: "FLT_RADIX" header: "<float.h>" .} : int +var FP_RADIX_INTERNAL {. importc: "FLT_RADIX" header: "<float.h>" .} : int + +template fpRadix* : int = FLT_RADIX_INTERNAL ## The (integer) value of the radix used to represent any floating ## point type on the architecture used to build the program. |