http://bugs.winehq.org/show_bug.cgi?id=19210
Summary: expr_alloc_uconstant() is not used Product: Wine Version: 1.1.25 Platform: All OS/Version: All Status: NEW Keywords: source, winelib Severity: normal Priority: P2 Component: winedbg AssignedTo: wine-bugs@winehq.org ReportedBy: fgouget@codeweavers.com
programs/winedbg/expr.c defines both an expr_alloc_sconstant() and an expr_alloc_uconstant() function. However:
* expr_alloc_uconstant() is not used anywhere. So at first sight it should be removed. * But expr_alloc_sconstant() is used to allocate tNUM constant which, as far as I can see, are unsigned constants. * expr_alloc_sconstant() is used nowhere else.
So something is wrong there. This is also related to EXPR_TYPE_U_CONST vs. EXPR_TYPE_S_CONST.
Possible fixes: * Modify the lexer to only return unsigned constants (since that's all it can match), and then get rid of expr_alloc_sconstant() and EXPR_TYPE_S_CONST. * Modify the lexer to return both signed and unsigned constants as appropriate.
In either case it will likely require modifications in the expression computation package as it only knows how to deal with signed integers.
See also this thread: http://www.winehq.org/pipermail/wine-devel/2009-January/072074.html
http://bugs.winehq.org/show_bug.cgi?id=19210
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|winelib |
http://bugs.winehq.org/show_bug.cgi?id=19210
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other
http://bugs.winehq.org/show_bug.cgi?id=19210
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #1 from Austin English austinenglish@gmail.com 2010-07-23 15:40:11 --- Still present in wine-1.2-422-ge158bb0
http://bugs.winehq.org/show_bug.cgi?id=19210
--- Comment #2 from Austin English austinenglish@gmail.com 2012-10-03 19:26:06 CDT --- Still in wine-1.5.14-142-g730479e
https://bugs.winehq.org/show_bug.cgi?id=19210
--- Comment #3 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=19210
--- Comment #4 from François Gouget fgouget@codeweavers.com --- This issue is still present.