Commit de81523f authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(assign_double): Fixed a broken cast.

parent 7b200ced
/*
* $Id: conf-file.c,v 1.22 2002/08/11 09:37:08 ceder Exp $
* $Id: conf-file.c,v 1.23 2002/08/11 17:51:14 ceder Exp $
* Copyright (C) 1994-1995, 1998-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -350,7 +350,7 @@ assign_double(const char *val,
if (val != NULL)
{
errno = 0;
*(int*)par->value = strtod(val, &tail);
*(double*)par->value = strtod(val, &tail);
if (errno || tail == val || *tail != '\0')
return FAILURE;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment