Commit c15fab71 authored by Claes Sjofors's avatar Claes Sjofors

Ge dyn bit dynamics bugfix for array of objects

parent 33e093cb
...@@ -116,7 +116,7 @@ static int get_bit( char *parsed_name, int attr_type, unsigned int *bitmask) ...@@ -116,7 +116,7 @@ static int get_bit( char *parsed_name, int attr_type, unsigned int *bitmask)
char *s; char *s;
int bitnum; int bitnum;
if ( (s = strchr( parsed_name, '['))) { if ( (s = strrchr( parsed_name, '['))) {
sscanf( s+1, "%d", &bitnum); sscanf( s+1, "%d", &bitnum);
*s = 0; *s = 0;
if ( bitnum >= 0 && bitnum < 32) { if ( bitnum >= 0 && bitnum < 32) {
...@@ -10178,7 +10178,7 @@ int GeSetDig::action( grow_tObject object, glow_tEvent event) ...@@ -10178,7 +10178,7 @@ int GeSetDig::action( grow_tObject object, glow_tEvent event)
char *s; char *s;
int bitnum; int bitnum;
if ( (s = strchr( parsed_name, '['))) { if ( (s = strrchr( parsed_name, '['))) {
sscanf( s+1, "%d", &bitnum); sscanf( s+1, "%d", &bitnum);
*s = 0; *s = 0;
if ( !(bitnum >= 0 && bitnum < 32)) if ( !(bitnum >= 0 && bitnum < 32))
...@@ -10379,7 +10379,7 @@ int GeResetDig::action( grow_tObject object, glow_tEvent event) ...@@ -10379,7 +10379,7 @@ int GeResetDig::action( grow_tObject object, glow_tEvent event)
char *s; char *s;
int bitnum; int bitnum;
if ( (s = strchr( parsed_name, '['))) { if ( (s = strrchr( parsed_name, '['))) {
sscanf( s+1, "%d", &bitnum); sscanf( s+1, "%d", &bitnum);
*s = 0; *s = 0;
if ( !(bitnum >= 0 && bitnum < 32)) if ( !(bitnum >= 0 && bitnum < 32))
...@@ -10548,7 +10548,7 @@ int GeToggleDig::action( grow_tObject object, glow_tEvent event) ...@@ -10548,7 +10548,7 @@ int GeToggleDig::action( grow_tObject object, glow_tEvent event)
char *s; char *s;
int bitnum; int bitnum;
if ( (s = strchr( parsed_name, '['))) { if ( (s = strrchr( parsed_name, '['))) {
sscanf( s+1, "%d", &bitnum); sscanf( s+1, "%d", &bitnum);
*s = 0; *s = 0;
if ( !(bitnum >= 0 && bitnum < 32)) if ( !(bitnum >= 0 && bitnum < 32))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment