From 1d3eae75ea459aca80960d65e42bc1e02b0fbba2 Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Wed, 27 Aug 2014 18:57:17 +0200
Subject: [PATCH] Let pike_sizeof return INT_TYPE, not INT32.

---
 src/svalue.c | 2 +-
 src/svalue.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/svalue.c b/src/svalue.c
index 9961f80263..b7e91ac88e 100644
--- a/src/svalue.c
+++ b/src/svalue.c
@@ -2498,7 +2498,7 @@ void real_gc_free_short_svalue(union anything *u, TYPE_T type)
   free_short_svalue(u, type);
 }
 
-PMOD_EXPORT INT32 pike_sizeof(const struct svalue *s)
+PMOD_EXPORT INT_TYPE pike_sizeof(const struct svalue *s)
 {
   switch(TYPEOF(*s))
   {
diff --git a/src/svalue.h b/src/svalue.h
index 7be7870d9d..144f0a3b5e 100644
--- a/src/svalue.h
+++ b/src/svalue.h
@@ -850,7 +850,7 @@ PMOD_EXPORT int real_gc_cycle_check_short_svalue(union anything *u, TYPE_T type)
 int gc_cycle_check_weak_short_svalue(union anything *u, TYPE_T type);
 void real_gc_free_svalue(struct svalue *s);
 void real_gc_free_short_svalue(union anything *u, TYPE_T type);
-PMOD_EXPORT INT32 pike_sizeof(const struct svalue *s);
+PMOD_EXPORT INT_TYPE pike_sizeof(const struct svalue *s);
 int svalues_are_constant(const struct svalue *s,
 			 INT32 num,
 			 TYPE_FIELD hint,
-- 
GitLab