From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 Date: Tue, 07 Dec 2021 16:03:59 +0200 Message-ID: <83czm8zf3l.fsf@gnu.org> References: <87tufmjyai.fsf@gnus.org> <87sfv5ljxn.fsf@gnus.org> <8735n5leza.fsf@gnus.org> <835ys11pxy.fsf@gnu.org> <87pmq9jyv1.fsf@gnus.org> <831r2p1or2.fsf@gnu.org> <87czm9jxjd.fsf@gnus.org> <83tuflzdc3.fsf@gnu.org> <878rwxjwt8.fsf@gnus.org> <83sfv5yu5x.fsf@gnu.org> <87a6hdhsrj.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31926"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 07 15:05:16 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mub5o-000831-Lk for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 15:05:16 +0100 Original-Received: from localhost ([::1]:46128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mub5m-0000AM-Om for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 09:05:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mub4Z-0007a6-Iq for emacs-devel@gnu.org; Tue, 07 Dec 2021 09:03:59 -0500 Original-Received: from [2001:470:142:3::e] (port=41872 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mub4Z-0004S7-6a; Tue, 07 Dec 2021 09:03:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lgq3KHhE6+91aw5ZYuoRNWaUc/j/5mvKzvd/6SHPs9E=; b=rzo+2eb41Oa8 GFkQGgM9MN/2swwsdIfmN/ZrnBJ72Y6Fxc675r7XZBhpDc6HCPDL/saFH38EIn77QGsVLWfSMA/ys kbyuSt3/stBvxeb/K4V6Ds32P4w3qMsamozoBedsOv7Jir1nlhPOsHwq9CKS/236g8AYjQMPIWQ9+ VgE2UR/IW8OdIS8BOI/Ep6T2632XqHiHzHbd0YYAa1c4+qAR84ljHjEGjsqS5O7hYYK6/QyOrYDt8 XVvqncN9XRJz+NGAVwNOvfjMJjzA6kDOzx3kLOBgM34StypNuWZ/pY1FfHg21Ip+eGfV9JGgkMqCI Xg/lT6QTtH12LtwPEkhg0w==; Original-Received: from [87.69.77.57] (port=3347 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mub4Y-0004kC-VF; Tue, 07 Dec 2021 09:03:59 -0500 In-Reply-To: <87a6hdhsrj.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 07 Dec 2021 06:46:08 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281248 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 07 Dec 2021 06:46:08 +0100 > > else if (EQ (type, Qinteger)) > /* FIXME: Bignums? */ > ret = sqlite3_bind_int64 (stmt, i + 1, XFIXNUM (value)); > > On a 32-bit system, this will truncate the value, I think? What's the > correct incantation here? You mean, what to use instead of XFIXNUM if 'value' is a BIGNUMP? bignum_to_intmax, I think.