Bug 5087 - Error message does not report, if number value is below zero
Summary: Error message does not report, if number value is below zero
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 15:49 UTC by Jorma Karvonen
Modified: 2007-10-03 14:34 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments
Extend error message (314 bytes, patch)
2007-10-03 14:33 UTC, Nick Clifton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jorma Karvonen 2007-10-02 15:49:28 UTC
This error message in gas-2.17.90.pot is not quite correct:

#: config/tc-avr.c:504
#, c-format
msgid "number must be less than %d"

In the source code is actually checked, if the "number" is greater than max
value or below zero.
Comment 1 Nick Clifton 2007-10-03 14:33:23 UTC
Created attachment 2032 [details]
Extend error message
Comment 2 Nick Clifton 2007-10-03 14:34:13 UTC
Hi Jorma,

  I have checked in a patch to change the error message to:

    number must be positive and less than %d

Cheers
  Nick