I really hope i choose the right place to post this - if not, I'm sorry for that

I'm getting this error:
llSetPrimitiveParams error running rule #3: non-integer rule.
While index # 3 seems to me to be ALL_SIDES, this is the underlying code:
origProperties = [PRIM_SIZE, llGetScale(),
PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES),
PRIM_ROTATION, llGetRot()];
// and later on...
llSetPrimitiveParams(origProperties);
PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES),
PRIM_ROTATION, llGetRot()];
// and later on...
llSetPrimitiveParams(origProperties);
But isn't ALL_SIDES an integer constant? I'm very confused about this as well as I don't have any idea what to do about it. Am I doing something wrong?
thanks in advance,
Jeko