~ubuntu-branches/ubuntu/quantal/warzone2100/quantal

« back to all changes in this revision

Viewing changes to lib/script/script.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2011-05-21 16:31:49 UTC
  • mfrom: (1.1.18 upstream) (2.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20110521163149-oj2qkd97z0b14lqz
Tags: 2.3.8-1
* New upstream release
  - Refresh miniupnpc removal patch
  - Build and install new upstream docs
* Complies with latest policy, bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
        This file is part of Warzone 2100.
3
3
        Copyright (C) 1999-2004  Eidos Interactive
4
 
        Copyright (C) 2005-2010  Warzone 2100 Project
 
4
        Copyright (C) 2005-2011  Warzone 2100 Project
5
5
 
6
6
        Warzone 2100 is free software; you can redistribute it and/or modify
7
7
        it under the terms of the GNU General Public License as published by
175
175
   these aren't currently checked for, but it's a lot clearer what's going on if they're all here */
176
176
BOOL scriptTypeIsPointer(INTERP_TYPE type)
177
177
{
178
 
        ASSERT( ((type < ST_MAXTYPE) || (type >= VAL_REF)), "scriptTypeIsPointer: invalid type: %d", type );
 
178
        ASSERT( ((type < (INTERP_TYPE)ST_MAXTYPE) || (type >= VAL_REF)), "scriptTypeIsPointer: invalid type: %d", type );
179
179
        // any value or'ed with VAL_REF is a pointer
180
180
        if (type >= VAL_REF) return true;
181
181
        switch (type) {