From 75e9a2dc69bad2fe10cc60d801019731069005cf Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 22 Feb 2008 17:44:47 +0000 Subject: simplified var object, now only supports strings and numbers as a single type --- queue.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'queue.c') diff --git a/queue.c b/queue.c index 2c43e773..18ea416c 100644 --- a/queue.c +++ b/queue.c @@ -2066,15 +2066,15 @@ static rsRetVal queueSetProperty(queue_t *pThis, var_t *pProp) ASSERT(pProp != NULL); if(isProp("iQueueSize")) { - pThis->iQueueSize = pProp->val.vInt; + pThis->iQueueSize = pProp->val.num; } else if(isProp("iUngottenObjs")) { - pThis->iUngottenObjs = pProp->val.vInt; + pThis->iUngottenObjs = pProp->val.num; } else if(isProp("tVars.disk.sizeOnDisk")) { - pThis->tVars.disk.sizeOnDisk = pProp->val.vLong; + pThis->tVars.disk.sizeOnDisk = pProp->val.num; } else if(isProp("tVars.disk.bytesRead")) { - pThis->tVars.disk.bytesRead = pProp->val.vLong; + pThis->tVars.disk.bytesRead = pProp->val.num; } else if(isProp("qType")) { - if(pThis->qType != pProp->val.vLong) + if(pThis->qType != pProp->val.num) ABORT_FINALIZE(RS_RET_QTYPE_MISMATCH); } -- cgit v1.2.3