Skip to content
Snippets Groups Projects
Commit e8b5e331 authored by Per Hedbor's avatar Per Hedbor
Browse files

handle integers before objects, to encode bignums as integers

Rev: lib/modules/Remote.pmod/context.pike:1.8
parent b0478b90
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,8 @@ object function_for(string id)
array encode(mixed val)
{
if (intp(val) || floatp(val))
return ({ CTX_OTHER, val });
if (objectp(val))
return ({ CTX_OBJECT, id_for(val) });
if (functionp(val) || programp(val))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment