mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
nix_api_value: nix_{get,set}_double -> nix_{get,set}_float
This commit is contained in:
parent
efcddcdd2f
commit
1e583c4ebd
2 changed files with 6 additions and 6 deletions
|
@ -170,7 +170,7 @@ unsigned int nix_get_attrs_size(nix_c_context *context, const Value *value) {
|
|||
NIXC_CATCH_ERRS_RES(0);
|
||||
}
|
||||
|
||||
double nix_get_double(nix_c_context *context, const Value *value) {
|
||||
double nix_get_float(nix_c_context *context, const Value *value) {
|
||||
if (context)
|
||||
context->last_err_code = NIX_OK;
|
||||
try {
|
||||
|
@ -299,7 +299,7 @@ nix_err nix_set_path_string(nix_c_context *context, Value *value,
|
|||
NIXC_CATCH_ERRS
|
||||
}
|
||||
|
||||
nix_err nix_set_double(nix_c_context *context, Value *value, double d) {
|
||||
nix_err nix_set_float(nix_c_context *context, Value *value, double d) {
|
||||
if (context)
|
||||
context->last_err_code = NIX_OK;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue