From patchwork Fri Jul 12 15:27:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1959942 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=Wm2uvh1L; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::73d; helo=mail-qk1-x73d.google.com; envelope-from=swupdate+bncbdk7hq7yrekrbv4wyw2amgqey4yljri@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qk1-x73d.google.com (mail-qk1-x73d.google.com [IPv6:2607:f8b0:4864:20::73d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WLFp239Zwz1xqx for ; Sat, 13 Jul 2024 01:27:22 +1000 (AEST) Received: by mail-qk1-x73d.google.com with SMTP id af79cd13be357-7a141e44419sf288326585a.1 for ; Fri, 12 Jul 2024 08:27:22 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1720798039; cv=pass; d=google.com; s=arc-20160816; b=EcX6dESLw4JyY+N1rW3FogJKF8lOr+jTo8mR53M48RTKEdwH3abGHH3RdUbJdQC/Rm L4dsHLgwB6SVg5cSoDqAkp1Yzrsc1Gjdb67sjIhY9B/ZFNySxiBxXDVFc7m0l1yNqtce 4dGVJN15Es32V1c8idkLEGkORf5vnsbEN5D2IRrnTLIDflkbWvISJNDJRWx2t2D3lZQZ F0nRceleIvGy7+3FvdzjPmI81t+9cD9UXnS2LYcyn+lcgvWXrG+7iqq0FPDWFLNzhZC1 CG118zDmICTfg5JuEaWlS44fUF2vRfY8t8BvuXidohBlTTT3l+teVGJfVYiLYYWRccMI QVyg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=4vbkQ8DBxWwXFs1A2sMPgk9KMeJk9w3cN5WsGTgunNg=; fh=bUS6kkpAdSVZCoa3a9O0aCAuoH1+TdUHISZ8bvOTVFM=; b=cBIjojnkguXN2m/CXij8Md/sSFxe/fwvae07BVSBfTioE66D9uWnkAXD4I3GnDe9+Y n2kYMHlpEbHDhJX0sOxgljTyeDdK8jX2g+JQdZg+az+Pt6SJLN4e2YBTRvYSUImx93dr d69gH9BPxTPvGN6AFemCg/aC3ECCm7SdVjI7kBxkbOCaIF1YrIcst32q7J/0qQBKCMmh c4djb57wYihJFUpKddNs70IJ2x/xnh4f7NdAIl+BTNVOUdvEUHNffhyzykKJkRw/CajC FoRu6t5agLed6xsVQgipm316D0fUShGPGxaZ3jz9L10S0Ai1wORuiUn6k7QpFzs8vKYf xPLQ==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=pwq5zc5m; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::601 as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720798039; x=1721402839; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=4vbkQ8DBxWwXFs1A2sMPgk9KMeJk9w3cN5WsGTgunNg=; b=Wm2uvh1LWpyo5s84AkqJO1IszRiEwMWJfG7o0r0BHsbqVnD5W9GJCmXY6/NxoOSTNE imAOX6aaEuz7vjtkx3gHBAKspoOYrkYPPsgxm5cCNVU4ykf3+MaR1vSeorrvWe2HvOze /iMFx+NiU7q96eBSRUpWf7wusaJNdxLu/Q37C43/xMS6lPfS+Ux7fkNi/BbhE0ptmtYX wjHLpXR8lLn5FWOTv85RYVV/Lj0x6kn3QT/GvnykZxY4Mt3pMUT2lW/7d78QoTpTPoSf uZcz/ne0Y4v54umxd8r7+hCCF3fofVikLLwwisBvVzJVoo562AOLSTSONEyfy2cprDYk bLvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720798039; x=1721402839; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=4vbkQ8DBxWwXFs1A2sMPgk9KMeJk9w3cN5WsGTgunNg=; b=PzZiDamy5ikPNfpAbBtePKp+TDilw2iW62e4HIK/5cRBfeAxssQse0v1mTb5FLaVKF lm2x1wr39u/OnFq2S4TeliTxcvGapCAGw1fHzb+bcg1e9Fru/O52h5dknz4xQRvFDNAF 4uAHutjYRI+Aj+Bmbc7d3S1/Wt0TLWViT40Mk4LlsDXg4T5A73ro29tEWBjxYAdmUSld KPeO3EVb+T+Xc5ObcWK1Enda/wcdGHAXKS471MAPAPJDVYlwu00BKynswv16UI494mD/ H0Pn3APSahjkA4LLODkpEIoOSBH1LY+2RSyN8LWTAFPsMmIMQbNej64s0lC/lHm0BqOI blRQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=3; AJvYcCVbWV19l69fx11SkrUYw5/87vpJWVTRKIx3WIuKOptvcyk5SiVAdfW+OebuOQ7V55zFnmbxOughaplb5fvh0epAcgMWNDc1OHqwmevZnQ== X-Gm-Message-State: AOJu0Yzl/Oq0K3sVbIXiPzPtqaLza8w1GT4NPUCmZxQJu2BjaJr2mt6T BmhaLCWikMuoGaSUWGc3wArlHl6qDf4CHqi1uKjWk2mhVBgB/Tg7 X-Google-Smtp-Source: AGHT+IHxQtt64wOI3Jzu6tSyiNgcn4FLQwY9dNqvxN0ItVAEZUvMbHYA5PcUmLSLYs69/WASnI7b8Q== X-Received: by 2002:ae9:f44b:0:b0:79f:78a:f46d with SMTP id af79cd13be357-79f19befb60mr1169817485a.65.1720798039556; Fri, 12 Jul 2024 08:27:19 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ac8:724e:0:b0:44b:e6db:de28 with SMTP id d75a77b69052e-44d0819c6acls29427721cf.2.-pod-prod-04-us; Fri, 12 Jul 2024 08:27:18 -0700 (PDT) X-Received: by 2002:a05:6122:910:b0:4ed:52b:dd29 with SMTP id 71dfb90a1353d-4f33f237cb9mr14210561e0c.3.1720798038258; Fri, 12 Jul 2024 08:27:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720798038; cv=pass; d=google.com; s=arc-20160816; b=b2evxzrkxUR9HbONYkfyfey0d1WBUb1IcstkNpDCk1+HfDs3Eoe6ycj/VGg2trO+wB duJnNqEH+TgwHY7nilhUBmqbFAyisDU1L2G6XNGWp8HoMRDGuF/CVZrRBvjFdrTsJZhT hlm95l3MLSSVW3UDl46i2ViusBkNkDyptzjHL1IspxAYEeSjsbP5ro1MZ3pjjuiOpdvV yGr8ysXvZkmQ/ejhUSOiIY6Jj0j462KSG+ysZt0+yF7Hm81xLaqpDKkLq2/1417ida2f qRRjuLfgjMFbU35bldgP8E9zJeuQ6ShyFwBdxtiVPIIKVIuzi6DOI8q9cqo7ev8n7BGS 8eyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LhJlGqap8rG41rsmfrgDlTMxnxOZ1o0WXGH+ZDqa86A=; fh=Zaas7zo9QAZR51NXyZEDKjGEOyAL/jH6m/nrwgSdorI=; b=Lui5KWvB7gHcT5m2BEWHXY0Py+kXUk6cPPgif6KHEP2Zl1bAZ5aULx5ebU4m6pFD2W E0Be2bHzcusU5throEufZv7DRjYOEqs7BzNa8eay7aDi/2kZyzjGd9tkCdCozENcC5Oy wmvfqWscs7PrqC66ie1sbmGRHDc9h8TCk9G7FqaiF72eU+cH1CqW8cdXNHyFhjWxhvEL wugHYZWU+ikrVGyvevn/6YghRX049PNZIwyhvgySyZgEwlAUSQDPhlWojWZLZceHf5Nc KYOmaW7tf2Ol7KCwVDxz8ZsWgMLrCsgcpLvxyjEKFt1xcoZdt1gUVn1KYNonQZzc8Sqa WZ3g==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=pwq5zc5m; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::601 as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20601.outbound.protection.outlook.com. [2a01:111:f400:7e1a::601]) by gmr-mx.google.com with ESMTPS id 71dfb90a1353d-4f33da10cd6si655930e0c.1.2024.07.12.08.27.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2024 08:27:18 -0700 (PDT) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::601 as permitted sender) client-ip=2a01:111:f400:7e1a::601; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vQDN3VpUcrLqBhdCstP8ZLOnWEaFhvWc8q/g9ive/K7rcyBkeX+MWygVnZICcLBokBWNblGyZrs5mrSadhVlr2irhbX3buMqva7eJejAjXs4BxDisrYlbZxafO39BpT8BBY5l9rnlZbmeVtztW8IyyZ1vJLGxG+0PAbH4tWp/jrx7IUCIz+uJFDqUMwYVV0iC4k40HrIvYdA6cg3o2DgemXNzidGk2YKYBAIsTQychh0GVeB0Arqq797oV99zbUQtIhzSejf7qRsX2gU8dJmNahOaDTGJ5mD3BLU2dm7kD7XVFsDoHswCKg+ttub6V2j3GtPPRGoXXFM3Q5C/eaHjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LhJlGqap8rG41rsmfrgDlTMxnxOZ1o0WXGH+ZDqa86A=; b=UbGMqCU43ClBskQSLrYS9TNdzs0TdMVI699Lwav3mjAJ9mUhO7re9G1Z5t7Ent6aMpk7am69vNxUyFpb2lrjOTWuzbq0v6YlfaLmuj8Ep5SqHhi7Lw5vNhNxFqCKXIVrNtnpbh7B0zfbohvR19oeSQEBx13E16TOv1XHBVUQhZqiqGafnH6kA4NXH4RPI12olzrmUjmTNk7+4I1T8ubcAyWH5Z50bBe3q5L26LcLW4KlN1k3XwHhaFZieNHAmPFN+MBMlEDWk50bkUccf76yeQf0FfOUBx9EXcvcgff0drbtqJvPLyNu6hxWjuQKj3FNoLme0V2RUwgKBXGXlzvVHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=arri.de; dmarc=fail (p=none sp=none pct=100) action=none header.from=arri.de; dkim=none (message not signed); arc=none (0) Received: from DUZPR01CA0009.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::16) by DB9PR07MB9344.eurprd07.prod.outlook.com (2603:10a6:10:45e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.6; Fri, 12 Jul 2024 15:27:11 +0000 Received: from DB5PEPF00014B97.eurprd02.prod.outlook.com (2603:10a6:10:3c3:cafe::68) by DUZPR01CA0009.outlook.office365.com (2603:10a6:10:3c3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23 via Frontend Transport; Fri, 12 Jul 2024 15:27:11 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by DB5PEPF00014B97.mail.protection.outlook.com (10.167.8.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Fri, 12 Jul 2024 15:27:10 +0000 Received: from N9W6SW14.arri.de (192.168.54.130) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Fri, 12 Jul 2024 17:27:10 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [swupdate] [PATCH v2 10/10] parser: libconfig: allow implicit conversion from INT to INT64 Date: Fri, 12 Jul 2024 17:27:02 +0200 Message-ID: <20240712152702.4751-1-ceggers@arri.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240712152253.3702-1-ceggers@arri.de> References: <20240712152253.3702-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.54.130] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B97:EE_|DB9PR07MB9344:EE_ X-MS-Office365-Filtering-Correlation-Id: d62681eb-d4bb-44a5-dc13-08dca287194b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|82310400026|376014; X-Microsoft-Antispam-Message-Info: lvOueZCmJaKFQ/HCZIpLx804Sqr520R2IzAQRbWPuBNmM6hEJGWD9NN4JG8oalphc0PPFb9cLdFRJFLXLwdgJuaXvkRaDRmFgfVV8dt4jy8Shn7Pd8aC8wCdt2cmSpfmwOdtPVJD2hzmePQqPnCT9GSB0GQJ/y8TcuZIb805cEwlvn0xGC3SE+yIeal+ZbSwu8kbuB27NC7br71PZ/sGCOeYj5akjxzlT79uT5pVceTJupWoOqD9hRlqUmfkxuGLvOhD+SBhZ1JrFdMZvWhutRouUzytCyNGJ/kORq0fS0n/AifnBceOmyUuBhd0ZPUZSkpDnvv3jtbtlarfQpbxu+uqbwKRfMWkbw2XQ2RjfTWeRTcpsIxeYzlwHkixC0aaaKqKrwCmK+69mmEhEhgY5CohLXVyi7FXpWqHoDiFzK0jyW6OyQ/7uIVOYPQAqPYv5htyoHpcKuwDASCn+mw3Mrsjw3GgRl1skVf19ere0vQCPGbhPK2d1K7SgkpUrk9aEIij9wz/jOQyj22yMksZUY00I0rX59J0JcI29UD+Lw2EevLwAwZZFFdS7Diu6nj3WEEARzGT3KgloeUfVg3/6ibnVPca2IYlQG2NK1/I8hh02x3JVRpwQ95eIw34TDxdIpGkx3ImeqBFLeQG7ghsKjnhw6zwBoonESj0KNBBFHWWLQFawjoc6S9tgCKCLuHgc8PfLTA3KVt6P5iaw7hqOfALcSdnnYeZeZvGFpCnKT3tN8bgEUf2DiLqqUjZRQ48SIKKWSeMZCwmB9yKaq+cNqMlMxvC6YGXQffjn8hlVsts5+GyWifDRIf+SbHc3dNPjvhfjoyl07Ow4zRCL9A2AZZwe1urkGuskxYAZC4v5dMZ+bpkFSYrRPvTf0tII66MJpGcljc8+Hqhik1IcCUlXCDdtaMcMuzZgL2S2cQ9FzVaIzfCLt3sqExNumHExXKWN8jjR1AMoWsmLHkriPmDERzaCr3lqdVJlC4VCiungMgeblxbfU7pToRckXsHiMi++KLmz2ldxhWJIVc7XddkU/qxx2d8qIRdmFyNx0YPydAtuw0j79/Kol59j4TW/ao8CwLiNeyQCjyldHkmSbFtns7z3sxW3ofw89FETE3GJYwgfKcYRip6GipDCirv2gBVUFv+hvD7J+ZCrRQCtrGQC8kZdgi/6jxdIhRCVpqbupOwwHzelwK1xCLIS5uEB3lyzaUDPRczuAYd4AotqWLh4M0Z2w79HPXnKZOT3eShXQhlgqM3cr/MnDOG9O8+WPvjNLORs2pQ3v9nNeeANfP7Bvh8bBv/UR4VOc8JddhbGQ0/rhOzLGRty8XZf5XqY01a6mHhySHkTwiQ93l0F/Y1x3f8gebRcTR3dLV8e4SZmcfDB7+ZFH+1jNWM/aLURBnR X-Forefront-Antispam-Report: CIP:217.111.95.7;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mta.arri.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(1800799024)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 15:27:10.7829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d62681eb-d4bb-44a5-dc13-08dca287194b X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a;Ip=[217.111.95.7];Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B97.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR07MB9344 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=pwq5zc5m; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::601 as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Since 1db0aefe57de ("Enforce type check in sw-description"), GET_FIELD_INT64() does not assign a config value anymore if the type detected by libconfig differs. This type check needs to be slightly relaxed to allow assignment of parsed INT32 values when a INT64 is expected. Otherwise this would require conversion of the sw-description in the .swu files which breaks compatiblity with existing update files. Link: https://groups.google.com/g/swupdate/c/UeALEHCAusQ Signed-off-by: Christian Eggers --- corelib/parsing_library_libconfig.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/corelib/parsing_library_libconfig.c b/corelib/parsing_library_libconfig.c index e99fbe9dfe9a..8f227aa872e1 100644 --- a/corelib/parsing_library_libconfig.c +++ b/corelib/parsing_library_libconfig.c @@ -42,11 +42,21 @@ static void get_value_libconfig(const config_setting_t *e, const char *path, voi { int parsed_type = config_setting_type(e); if (parsed_type != map_field_type(expected_type)) { - WARN("Type mismatch for %s field \"%s\"", SW_DESCRIPTION_FILENAME, path); - return; + /* Weaken type equality requirements for INT/INT64 */ + if ((parsed_type == CONFIG_TYPE_INT && expected_type == TYPE_INT64) || + (parsed_type == CONFIG_TYPE_INT64 && expected_type == TYPE_INT)) { + /* ignore type mismatch, handled well by libconfig */ + } else { + WARN("Type mismatch for %s field \"%s\"", SW_DESCRIPTION_FILENAME, path); + return; + } } + switch (expected_type) { case TYPE_INT: + /* libconfig handles also 'L' suffixed integers as long as they fit + * into INT32. Otherwise zero is returned + */ *(int *)dest = config_setting_get_int(e); break; case TYPE_INT64: