Skip Menu |

This queue is for tickets about the Liberty-Parser CPAN distribution.

Report information
The Basics
Id: 125015
Status: new
Priority: 0/
Queue: Liberty-Parser

People
Owner: Nobody in particular
Requestors: tlaundrie [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: get_simple_attr_value only works for strings.
Date: Wed, 4 Apr 2018 20:31:58 -0500
To: bug-Liberty-Parser [...] rt.cpan.org
From: Tony Laundrie <tlaundrie [...] gmail.com>
Make these changes in Parser.pm so that get_simple_attr_value works for other attribute types: diff Parser.pm.new Parser.pm.orig 390,401c390 < my $vtype = $self->get_value_type($at); < if($vtype == $liberty::SI2DR_STRING){ < return lib_SimpleAttrGetStringValue($at,\$e); < }elsif($vtype == $liberty::SI2DR_FLOAT64){ < return lib_SimpleAttrGetFloat64Value($at,\$e); < }elsif($vtype == $liberty::SI2DR_INT32){ < return lib_SimpleAttrGetInt32Value($at,\$e); < }elsif($vtype == $liberty::SI2DR_EXPR){ < return lib_SimpleAttrGetExprValue($at,\$e); < }elsif($vtype == $liberty::SI2DR_BOOLEAN){ < return lib_SimpleAttrGetBooleanValue($at,\$e); < } --- Show quoted text
> return lib_SimpleAttrGetStringValue($at, \$e);