From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 19 02:27:15 2014 Received: (at submit) by debbugs.gnu.org; 19 Jun 2014 06:27:15 +0000 Received: from localhost ([127.0.0.1]:52399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxVoY-0003fc-0K for submit@debbugs.gnu.org; Thu, 19 Jun 2014 02:27:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37937) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxVoV-0003fJ-1r for submit@debbugs.gnu.org; Thu, 19 Jun 2014 02:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxVoO-0004ww-GT for submit@debbugs.gnu.org; Thu, 19 Jun 2014 02:27:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxVoO-0004wr-Db for submit@debbugs.gnu.org; Thu, 19 Jun 2014 02:27:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxVoM-0003lL-TU for bug-gnu-emacs@gnu.org; Thu, 19 Jun 2014 02:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxVoL-0004wS-GT for bug-gnu-emacs@gnu.org; Thu, 19 Jun 2014 02:27:02 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:48892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxVoL-0004w2-5T for bug-gnu-emacs@gnu.org; Thu, 19 Jun 2014 02:27:01 -0400 Received: by mail-wg0-f43.google.com with SMTP id b13so1770253wgh.2 for ; Wed, 18 Jun 2014 23:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QAufTVo7lsmVVcVABbUzVCaC6b8ixFlVc2tf3xSIxlk=; b=Yb+COSotx9+8CJLgz7iyRwF4kgcDRmjJoYY5VujHvl36IxyYkRH+G84aoHDszVlvtv swke8IkD6knaBiOeS39awecikphU50jGEGralgGV/zYDtSZbToQzIgH+cuVD4mjckuzg 2wLb8yeTkTTTkVIxp+ykfJhQCcB4Z94IpEfT/1KqDHb7YlexHZsaqU4hffSkQt4Itwmz Y5BGeIRqmUtauXusB0FAMvF6jYmMKXoxweHkZbqky6hE/hPdz9EoGWHUoNyvECytTlRW 3qHTBNnobMh/I780tAu2ayPbOXCuE+BvyZOgt05W76m1QyzT/uyJpGyxLjx8MXqz/C3S RPzQ== MIME-Version: 1.0 X-Received: by 10.194.89.168 with SMTP id bp8mr2560248wjb.73.1403159219699; Wed, 18 Jun 2014 23:26:59 -0700 (PDT) Received: by 10.216.205.66 with HTTP; Wed, 18 Jun 2014 23:26:59 -0700 (PDT) Date: Thu, 19 Jun 2014 14:26:59 +0800 Message-ID: Subject: 24.4.50; hif-string-to-number convert a hex(or any non-decial) integer as float From: William Xu To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary=047d7bf10a1cda9dab04fc2a76f6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7bf10a1cda9dab04fc2a76f6 Content-Type: multipart/alternative; boundary=047d7bf10a1cda9da504fc2a76f4 --047d7bf10a1cda9da504fc2a76f4 Content-Type: text/plain; charset=UTF-8 (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? ---------------------------------8<------------------------------------- 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-do-lex-if() 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) semantic-fetch-tags() byte-code("\212\212\300 \210*\301\207" [semantic-fetch-tags nil] 1) semantic-idle-scheduler-refresh-tags() (and (semantic-idle-scheduler-enabled-p) (semantic-idle-scheduler-refresh-tags)) ... ---------------------------------8<------------------------------------- In GNU Emacs 24.4.50.1 (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' -- William http://xwl.appspot.com --047d7bf10a1cda9da504fc2a76f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
(hif-string-to-number "0F" 16)
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D> 15.0

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

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

Anyway, how about attached fix?
= =C2=A0=C2=A0
---------------------------------8<--------------------= -----------------
Debugger entered--Lisp error: (wrong-type-argument in= teger-or-marker-p 15.0)
=C2=A0 logand(0 15.0)
=C2=A0 hif-logand(0 15.0)
=C2=A0 (hif-notequal = (hif-logand (hif-lookup (quote SPURIOUS_APIC_VECTOR)) 15.0) 15.0)
=C2=A0= eval((hif-notequal (hif-logand (hif-lookup (quote SPURIOUS_APIC_VECTOR)) 1= 5.0) 15.0))
=C2=A0 semantic-c-do-lex-if()
=C2=A0 semantic-c-lexer(1 4938 nil nil)
=C2=A0 semantic-lex(1 4938 nil)<= br>=C2=A0 semantic-parse-region-default(1 4938 nil nil nil)
=C2=A0 seman= tic-parse-region-c-mode(1 4938 nil nil nil)
=C2=A0 semantic-parse-region= (1 4938)
=C2=A0 semantic-fetch-tags()
=C2=A0 byte-code("\212\212\300 \210*\301\207" [semantic-fetch-tag= s nil] 1)
=C2=A0 semantic-idle-scheduler-refresh-tags()
=C2=A0 (and (= semantic-idle-scheduler-enabled-p) (semantic-idle-scheduler-refresh-tags))<= br>=C2=A0 ...=C2=A0
---------------------------------8<-------------------------------------=

In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12= .2)
=C2=A0of 2014-06-10 on linux-xwl
Windowing system distributor `Th= e X.Org Foundation', version 11.0.11501000
System Description:=C2=A0=C2=A0=C2=A0 Debian GNU/Linux unstable (sid)
Configured using:
=C2=A0`configure --with-x-toolkit=3Dgtk3'
--
William

http://xwl.appspo= t.com

--047d7bf10a1cda9da504fc2a76f4-- --047d7bf10a1cda9dab04fc2a76f6 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Convert-non-decimal-integer-string-still-as-an-integ.patch" Content-Disposition: attachment; filename="0001-Convert-non-decimal-integer-string-still-as-an-integ.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hwloqoej0 RnJvbSA4M2Y2MWIyNWZlODk2MTEyNDIwZTRiOWQwMGI3ZGI4YzhiNmQ4YmNmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjA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KGNvbmNhdCAoY2FyIHBhcnRzKSBmcmFjKSBiYXNlKSBxdW90KSkpKQor ICAgICAgICAgICAoZnJhYyAoY2FkciBwYXJ0cykpCisgICAgICAgICAgIChxdW90IChleHB0ICgq IGJhc2UgMS4wKSAobGVuZ3RoIGZyYWMpKSkKKyAgICAgICAgICAgKG51bSAoLyAoc3RyaW5nLXRv LW51bWJlciAoY29uY2F0IChjYXIgcGFydHMpIGZyYWMpIGJhc2UpCisgICAgICAgICAgICAgICAg ICAgcXVvdCkpKQorICAgICAgKGlmICg9IG51bSAodHJ1bmNhdGUgbnVtKSkKKyAgICAgICAgICAo dHJ1bmNhdGUgbnVtKQorICAgICAgICBudW0pKSkpCiAKIChkZWZ1biBoaWYtdG9rZW5pemUgKHN0 YXJ0IGVuZCkKICAgIlNlcGFyYXRlIHN0cmluZyBiZXR3ZWVuIFNUQVJUIGFuZCBFTkQgaW50byBh IGxpc3Qgb2YgdG9rZW5zLiIKLS0gCjIuMC4wCgo= --047d7bf10a1cda9dab04fc2a76f6-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 19 17:09:22 2014 Received: (at 17807-done) by debbugs.gnu.org; 19 Jun 2014 21:09:22 +0000 Received: from localhost ([127.0.0.1]:53507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxjaD-0002JE-Vx for submit@debbugs.gnu.org; Thu, 19 Jun 2014 17:09:22 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:34306) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxjaB-0002Iz-5h for 17807-done@debbugs.gnu.org; Thu, 19 Jun 2014 17:09:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWIxALNBIUGA0kiAzSGReOegeEOASpGYFqgXGBWyE X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWIxALNBIUGA0kiAzSGReOegeEOASpGYFqgXGBWyE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="68423978" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Jun 2014 17:09:13 -0400 Received: by pastel.home (Postfix, from userid 20848) id 6D56E60D16; Thu, 19 Jun 2014 17:09:13 -0400 (EDT) From: Stefan Monnier To: William Xu Subject: Re: bug#17807: 24.4.50; hif-string-to-number convert a hex(or any non-decial) integer as float Message-ID: References: Date: Thu, 19 Jun 2014 17:09:13 -0400 In-Reply-To: (William Xu's message of "Thu, 19 Jun 2014 14:26:59 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17807-done Cc: 17807-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > (hif-string-to-number "0F" 16) > => 15.0 [...] > Anyway, how about attached fix? Thanks, installed into trunk, Stefan From unknown Fri Sep 05 08:21:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Jul 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator