summaryrefslogtreecommitdiff
path: root/egg/egg-asn1x.c
diff options
context:
space:
mode:
authorRyan Stonecipher <Ryan.Stonecipher.Fisher@gmail.com>2011-01-24 14:42:02 -0600
committerStef Walter <stefw@collabora.co.uk>2011-01-24 14:42:26 -0600
commit4050d583e8fe6c5c4bb71f0fd4ba6498cdf5a1b6 (patch)
tree2210e6003969220c716257f43c6a2563d4e8aa6c /egg/egg-asn1x.c
parentac01c60ed77e7360ee1ba5160e02bbae234dd984 (diff)
Fix undefined type in egg-asn1x.c
Mac OSX doesn't have a ulong type https://bugzilla.gnome.org/show_bug.cgi?id=640362
Diffstat (limited to 'egg/egg-asn1x.c')
-rw-r--r--egg/egg-asn1x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/egg/egg-asn1x.c b/egg/egg-asn1x.c
index 122cedfd..10bd92cc 100644
--- a/egg/egg-asn1x.c
+++ b/egg/egg-asn1x.c
@@ -2064,8 +2064,8 @@ anode_write_integer_ulong (gulong value, guchar *data, gsize *n_data)
guchar buf[sizeof (gulong)];
gint bytes, i, off;
- for (i = 0; i < sizeof (ulong); ++i) {
- off = sizeof (ulong) - (i + 1);
+ for (i = 0; i < sizeof (gulong); ++i) {
+ off = sizeof (gulong) - (i + 1);
buf[i] = (value >> (off * 8)) & 0xFF;
}