Changeset 522 for XIOS/branchs


Ignore:
Timestamp:
12/01/14 09:49:17 (10 years ago)
Author:
rlacroix
Message:

Fix a typo in DECLARE_ENUM9 macro: getSize method returned 8 instead of 9.

Also backport that fix to XIOS 1.0.

Note that this macro is currently not used by XIOs so this bug had no impact in practice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-1.0/src/declare_attribute.hpp

    r501 r522  
    111111     enum t_enum { arg1=0, arg2, arg3,arg4,arg5,arg6,arg7,arg8,arg9} ;                                \ 
    112112     const char** getStr(void) const { static const char * enumStr[] = { #arg1, #arg2, #arg3,#arg4,#arg5,#arg6,#arg7,#arg8,#arg9 } ; return enumStr ; }   \ 
    113      int getSize(void) const { return 8 ; }                       \ 
     113     int getSize(void) const { return 9 ; }                       \ 
    114114   } ;                                                            \ 
    115115   DECLARE_CLASS_ENUM(name)  
Note: See TracChangeset for help on using the changeset viewer.