summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/css.c6
-rw-r--r--css/css.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/css/css.c b/css/css.c
index 3f967b548..e03e0c107 100644
--- a/css/css.c
+++ b/css/css.c
@@ -2,7 +2,7 @@
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
- * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
+ * Copyright 2004 James Bursa <bursa@users.sourceforge.net>
*/
#include <assert.h>
@@ -998,10 +998,10 @@ unsigned int css_hash(const char *s)
/**
- * convert a struct css_length to pixels
+ * Convert a struct css_length to pixels.
*/
-signed long len(struct css_length * length, struct css_style * style)
+float len(struct css_length * length, struct css_style * style)
{
assert(!((length->unit == CSS_UNIT_EM || length->unit == CSS_UNIT_EX) && style == 0));
switch (length->unit) {
diff --git a/css/css.h b/css/css.h
index 71caabfdd..0c5f6d899 100644
--- a/css/css.h
+++ b/css/css.h
@@ -2,7 +2,7 @@
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
- * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
+ * Copyright 2004 James Bursa <bursa@users.sourceforge.net>
*/
/** \file
@@ -293,6 +293,6 @@ colour named_colour(const char *name);
void css_dump_style(const struct css_style * const style);
void css_dump_stylesheet(const struct css_stylesheet * stylesheet);
-signed long len(struct css_length * length, struct css_style * style);
+float len(struct css_length * length, struct css_style * style);
#endif