X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_choice.c;h=c27ea1592525caee172c1a24f32fd6376eb2fa1c;hp=3020e2d4b2ccb2be4292fcc1213b2a33238e04d8;hb=95d8bd04e10519a635972a24176270ef4dbe8d2c;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505 diff --git a/src/odr_choice.c b/src/odr_choice.c index 3020e2d..c27ea15 100644 --- a/src/odr_choice.c +++ b/src/odr_choice.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: odr_choice.c,v 1.5 2005-06-25 15:46:04 adam Exp $ + * $Id: odr_choice.c,v 1.6 2005-08-11 14:21:55 adam Exp $ */ /** @@ -56,7 +56,7 @@ int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp, { if (o->direction == ODR_DECODE && cl < 0) { - if (o->op->stackp > -1 && !odr_constructed_more(o)) + if (o->op->stack_top && !odr_constructed_more(o)) return 0; if (ber_dectag(o->bp, &cl, &tg, &cn, odr_max(o)) <= 0) return 0;