[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17807: 24.4.50; hif-string-to-number convert a hex(or any non-decial

From: William Xu
Subject: bug#17807: 24.4.50; hif-string-to-number convert a hex(or any non-decial) integer as float
Date: Thu, 19 Jun 2014 14:26:59 +0800

(hif-string-to-number "0F" 16)
        => 15.0

It would fail hif-logand, like the one below, caught in cedet. 

Is it really necessary to support non-decial floats? When is something
like "0xff.e9" useful?

Anyway, how about attached fix?
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p 15.0)
  logand(0 15.0)
  hif-logand(0 15.0)
  (hif-notequal (hif-logand (hif-lookup (quote SPURIOUS_APIC_VECTOR)) 15.0) 15.0)
  eval((hif-notequal (hif-logand (hif-lookup (quote SPURIOUS_APIC_VECTOR)) 15.0) 15.0))
  semantic-c-lexer(1 4938 nil nil)
  semantic-lex(1 4938 nil)
  semantic-parse-region-default(1 4938 nil nil nil)
  semantic-parse-region-c-mode(1 4938 nil nil nil)
  semantic-parse-region(1 4938)
  byte-code("\212\212\300 \210*\301\207" [semantic-fetch-tags nil] 1)
  (and (semantic-idle-scheduler-enabled-p) (semantic-idle-scheduler-refresh-tags))

In GNU Emacs (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2014-06-10 on linux-xwl
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description:    Debian GNU/Linux unstable (sid)

Configured using:
 `configure --with-x-toolkit=gtk3'



Attachment: 0001-Convert-non-decimal-integer-string-still-as-an-integ.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]