message
stringlengths
6
474
diff
stringlengths
8
5.22k
evp_extra_test: Remove TODO comment as setting the curve is mandatory Even with the SM2 algorithm the curve is needed for the paramgen.
@@ -1319,7 +1319,6 @@ static int test_EVP_SM2(void) if (!TEST_true(EVP_PKEY_paramgen_init(pctx) == 1)) goto done; - /* TODO is this even needed? */ if (!TEST_true(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx, NID_sm2))) goto done;
hw/mcu/dialog: Remove legacy settings for lpclk Choice syscfg is preferred way to set lpclk.
@@ -343,19 +343,6 @@ syscfg.defs: restrictions: - '!GPADC_BATTERY' - LP_RCX: - description: - value: 0 - - LP_XTAL32K: - description: - value: 0 - -syscfg.vals.LP_RCX: - MCU_LPCLK_SOURCE: RCX -syscfg.vals.LP_XTAL32K: - MCU_LPCLK_SOURCE: XTAL32K - syscfg.restrictions: - "QSPI_FLASH_ADDRESS_LENGTH==24" - "!I2C_0 || (I2C_...
feat(coder) Implement int->float casts
@@ -848,11 +848,27 @@ generate_exp = function(exp) -- TODO end elseif tag == ast.Exp.Cast then + local cstats, cvalue = generate_exp(exp.exp) + + local src_typ = exp.exp._type + local dst_typ = exp._type + + if src_typ._tag == dst_typ._tag then + return cstats, cvalue + + elseif src_typ._tag == types.T.Integer and dst_...
HW: Adding reset values for regX_data to action_memcopy.vhd in order to get around 'partial antenna' image build problem
@@ -716,8 +716,11 @@ read_write_process: tail <= 0; head <= 0; reg0_valid <= '0'; + reg0_data <= dma_rd_data; reg1_valid <= '0'; + reg1_data <= dma_rd_data; reg2_valid <= '0'; + reg2_data <= dma_rd_data; write_counter_up <= (25 downto 1 => '0') & '1'; write_counter_dn <= blocks_to_write(25 downto 0); else
common/util_stdlib.c: Format with clang-format BRANCH=none TEST=none
@@ -134,8 +134,7 @@ __stdlib_compat int atoi(const char *nptr) return neg ? -result : result; } -__keep -__stdlib_compat int memcmp(const void *s1, const void *s2, size_t len) +__keep __stdlib_compat int memcmp(const void *s1, const void *s2, size_t len) { const char *sa = s1; const char *sb = s2; @@ -151,8 +150,7 @@ _...
[build] Add global .pb.cc when build python proto libraries to increase protobuf performance
import os import ymake -from _common import stripext, rootrel_arc_src +from _common import stripext, rootrel_arc_src, listid from pyx import PyxParser @@ -22,6 +22,14 @@ def pb2_arg(path, mod, unit): return '{}_pb2.py={}_pb2'.format(stripext(to_build_root(path, unit)), mod) +def pb_cc_arg(path, unit): + return '{}.pb.c...
s5j: add netif flags on wlan_init function This commit is to add netif flags for lwIP stack - to handle ARP, Broadcast and IGMP multicast packets, those flags should be configured on netif
@@ -112,5 +112,7 @@ err_t wlan_init(struct netif *netif) snprintf(netif->d_ifname, IFNAMSIZ, "%c%c%d", netif->name[0], netif->name[1], netif->num); + netif->flags = NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_BROADCAST | NETIF_FLAG_IGMP; + return ERR_OK; }
Reordered changes for 1.25.0 by significance (subjective).
@@ -33,7 +33,7 @@ NGINX Unit updated to 1.25.0. <change type="feature"> <para> -TLS session tickets. +client IP address replacement from a specified HTTP header field. </para> </change> @@ -45,7 +45,7 @@ TLS sessions cache. <change type="feature"> <para> -process and thread lifecycle hooks in Ruby. +TLS session tickets...
Fix error numeration
@@ -555,7 +555,7 @@ static int add_block_nolock(struct xdag_block *newBlock, xtime_t limit) /* check remark */ if(tmpNodeBlock.flags & BI_REMARK) { if(!remark_acceptance(newBlock->field[remark_index].remark)) { - err = 0xC; + err = 0xE; goto end; } } @@ -732,7 +732,7 @@ static int add_block_nolock(struct xdag_block *ne...
Test automation: Fixed some pylint remarks for u_run_zephyr.py
@@ -211,7 +211,7 @@ def download_single_cpu(connection, jlink_device_name, guard_time_seconds, build return u_utils.exe_run(call_list, guard_time_seconds, printer, prompt, shell_cmd=True, set_env=env) -def download_nrf53(connection, jlink_device_name, guard_time_seconds, build_dir, env, printer, prompt): +def download_...
power/alderlake_slg4bd44540.c: Format with clang-format BRANCH=none TEST=none
#define GPIO_SET_LEVEL(signal, value) \ gpio_set_level_verbose(CC_CHIPSET, signal, value) #else -#define GPIO_SET_LEVEL(signal, value) \ - gpio_set_level(signal, value) +#define GPIO_SET_LEVEL(signal, value) gpio_set_level(signal, value) #endif /* The wait time is ~150 msec, allow for safety margin. */ @@ -250,7 +249,6...
Use log-module for Orchestra
#include "net/routing/rpl-classic/rpl-private.h" #endif -#define DEBUG DEBUG_PRINT -#include "net/ipv6/uip-debug.h" +#include "sys/log.h" +#define LOG_MODULE "Orchestra" +#define LOG_LEVEL LOG_LEVEL_MAC /* A net-layer sniffer for packets sent and received */ static void orchestra_packet_received(void); @@ -171,10 +172,...
Call monitor_cap_detect in bsp_boot_init On the APL NUC board (CPU family: 0x6 model: 92), the monitor is buggy. We can't use it to wake up CPU core from mwait by memory monitor.
@@ -74,9 +74,10 @@ struct cpu_capability { static struct cpu_capability cpu_caps; static void apicv_cap_detect(void); +static void monitor_cap_detect(void); static void cpu_set_logical_id(uint32_t logical_id); static void print_hv_banner(void); -bool check_monitor_support(void); +static inline bool get_monitor_cap(void...
BugID:19146271:Keep ble mesh init in ble task context to prevent handles mixing issue
@@ -74,6 +74,11 @@ static u8_t reg_faults[CUR_FAULTS_MAX * 2]; struct mesh_shell_cmd *bt_mesh_get_shell_cmd_list(); +#ifdef CONFIG_BT_MESH_PROV +static bt_mesh_prov_bearer_t prov_bear; +static void cmd_pb2(bt_mesh_prov_bearer_t bearer, const char *s); +#endif + static void get_faults(u8_t *faults, u8_t faults_size, u8_...
doc: fix link in faq
@@ -112,7 +112,7 @@ Please start by reading [here](/.github/CONTRIBUTING.md). [New BSD license](/LICENSE.md) which allows us to have plugins link against GPL and GPL-incompatible libraries. If you compile Elektra, e.g., with GPL plugins, the -result is GPL. We are [reuse](reuse.software/) compliant. +result is GPL. We ...
Fix range checks with -offset and -length in asn1parse
@@ -258,14 +258,14 @@ int asn1parse_main(int argc, char **argv) num = tmplen; } - if (offset >= num) { + if (offset < 0 || offset >= num) { BIO_printf(bio_err, "Error: offset too large\n"); goto end; } num -= offset; - if ((length == 0) || ((long)length > num)) + if (length == 0 || length > (unsigned int)num) length = ...
os/fs/smartfs : Delete unusing code Remove unnecessary code
@@ -1079,11 +1079,6 @@ static int smart_setsectorsize(FAR struct smart_struct_s *dev, uint16_t size) /* Now get Total Journal data of both of 2 area */ dev->njournaldata = dev->njournalPerBlk * dev->njournaleraseblocks; - if (dev->sSeqLogMap != NULL) { - smart_free(dev, dev->sSeqLogMap); - dev->sSeqLogMap = NULL; - } -...
[mechanics] put gain the specilization fro bullet2dR (to be fixed)
#define XBULLET_CLASSES() \ REGISTER(BulletR)\ REGISTER(Bullet5DR)\ + REGISTER(Bullet2dR) #ifdef SICONOS_HAS_BULLET @@ -224,7 +225,7 @@ void contactPointProcess<Lagrangian2d2DR>(SiconosVector& answer, const SiconosVector& posa = *rel.pc1(); const SiconosVector& posb = *rel.pc2(); const SiconosVector& nc = *rel.nc(); - ...
add version flags to the new menu commands to flag them as new and turn them green (kind of a hack, since it it really refers to the maya version, but we set it to a future maya version, and next houdini version we will remove the flags)
@@ -582,10 +582,13 @@ houdiniEngineCreateUI() menuItem -label "Sync Asset" -command "houdiniEngine_syncSelectedAsset"; menuItem -label "Bake Asset" + -version 2019 -command "houdiniEngine_bakeSelectedAssets"; menuItem -label "Remove Asset From History" + -version 2019 -command "houdiniEngine_removeSelectedHistory"; men...
BugID:17865306: Fix NAME for developerkit
-ifeq ($(AOS_2BOOT_SUPPORT), yes) -NAME := board_developerkit_2boot -else NAME := board_developerkit -endif $(NAME)_MBINS_TYPE := kernel $(NAME)_VERSION := 1.0.0 @@ -12,6 +8,8 @@ HOST_MCU_FAMILY := mcu_stm32l4xx_cube HOST_MCU_NAME := STM32L496VGTx ifeq ($(AOS_2BOOT_SUPPORT), yes) +$(NAME)_LIBSUFFIX := _2boot + HOST_OPE...
CLIENT LIST / INFO show resp version
@@ -2329,7 +2329,7 @@ sds catClientInfoString(sds s, client *client) { total_mem += zmalloc_size(client->argv); return sdscatfmt(s, - "id=%U addr=%s laddr=%s %s name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U argv-mem=%U obl=%U oll=%U omem=%U tot-mem=%U events=%s cmd=%s user=%s redir=...
Ensure we force close an invalid client under ws_send_strict_fifo_to_client().
@@ -2539,8 +2539,13 @@ ws_send_strict_fifo_to_client (WSServer * server, int listener, WSPacket * pa) { if (!(client = ws_get_client_from_list (listener, &server->colist))) return; /* no handshake for this client */ - if (client->headers == NULL || client->headers->ws_accept == NULL) + if (client->headers == NULL || cl...
clay: add /cs/===/bloc scry for all desk blobs Lets you retrieve all blobs from the blob store that are in use by the desk, both presently and in all its history.
++ read-s |= [yon=aeon pax=path] ^- (unit (unit cage)) + ?: ?=([%bloc ~] pax) + :^ ~ ~ %noun + :- -:!>(*(map lobe blob)) + ^- (map lobe blob) + %- %~ rep in + %- reachable-takos + (~(got by hit.dom) let.dom) + |= [t=tako o=(map lobe blob)] + %- ~(gas by o) + %+ turn + ~(val by q:(~(got by hut.ran) t)) + |=(l=lobe [l (~...
added upload progressbar
/*===========================================================================*/ /* globale Konstante */ +struct memory +{ +char *response; +size_t size; +}; + static long int uploadcountok; static long int uploadcountfailed; static const char *wpasecurl = "https://wpa-sec.stanev.org"; static bool removeflag = false; +s...
Adjust button numbers for lumi.ctrl_neutral1 and lumi.ctrl_neutral2 1002 2002 3002
@@ -4262,15 +4262,25 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) if (item && !i->buttonMap() && event.event() == deCONZ::NodeEvent::UpdatedClusterDataZclReport) { - // TODO better button handler - quint32 button; + quint32 button = 0; if (i->modelId() == QLatin1String("lumi.sensor_86sw...
Make _advance a little bit more readable.
@@ -21,14 +21,14 @@ function Parser:init(lexer) end function Parser:_advance() - local err - local tok = self.next - self.next = self.look - self.look, err = self.lexer:next() - if not self.look then + local tok, err = self.lexer:next() + if not tok then self:syntax_error(self.lexer:loc(), err) end - return tok + local...
New linter with arcadia global checkstyle (update of https://a.yandex-team.ru/review/725386)
@@ -445,6 +445,7 @@ def onadd_check(unit, *args): allowed_levels = { 'base': '/yandex_checks.xml', 'strict': '/yandex_checks_strict.xml', + 'extended': '/yandex_checks_extended.xml', } if check_level not in allowed_levels: raise Exception('{} is not allowed in LINT(), use one of {}'.format(check_level, allowed_levels.k...
Disable flagstat test as output differs in samtools-1.13
@@ -244,7 +244,8 @@ class SamtoolsTest(unittest.TestCase): command = self.get_command(statement, map_to_internal=False) # bam2fq differs between version 1.5 and 1.6 - re-enable if # bioconda samtools will be available. - if command in ("bedcov", "stats", "dict", "bam2fq"): + # flagstat differs between version <=1.12 an...
improve standalone test
#!/usr/bin/env python import os -from panda.lib.panda import Panda +import struct import time +from panda.lib.panda import Panda if __name__ == "__main__": if os.getenv("WIFI") is not None: @@ -10,12 +11,15 @@ if __name__ == "__main__": p = Panda() print p.health() + a = 0 while 1: # flood - p.can_send(0xaa, "\xaa"*8, ...
[numerics] Delete the function getNewtonSteplength, which has been replaced by getStepLength which uses long double.
@@ -123,8 +123,6 @@ typedef long double float_type; /* On the implementation and usage of SDPT3 - a Matlab software package */ /* for semidefinite-quadratic-linear programming, version 4.0 */ /* Draft, 17 July 2006 */ -static double getNewtonStepLength(const double * const x, const double * const dx, - const unsigned i...
error: added more examples
@@ -21,12 +21,18 @@ e.g., to keep the mountpoint information or on how wordings should be (with or w "Sorry, ...", coloring of certain parts of a message, etc.) Examples would be to - - Leave out the "Sorry" - - Show mountpoint info but in another way: + +- Leave out the "Sorry" in the error message or leave the introd...
bfscope_nfs: increase local buffer to 128M, redump trace if necessary, and cleanup unused/unnecessary globals
#define DEBUG if (0) printf -/// Buffer size for temp buffer during dumping -#define BFSCOPE_BUFLEN (2<<20) +/// Buffer size for temp buffer during dumping: 128MB +#define BFSCOPE_BUFLEN (128UL * 1024 * 1024) /// Use /bfscope as mount point for NFS share #define MOUNT_DIR "/bfscope" @@ -46,8 +46,6 @@ static vfs_handle_...
improve makefile for lib include files
@@ -519,17 +519,20 @@ install_lib: $(LIB_PATH)/$(SHARED_LIB_NAME_FULL) $(LIB_PATH)/$(SHARED_LIB_NAME_S @echo "Installed library" .PHONY: install_lib-dev -install_lib-dev: $(LIB_PATH)/$(SHARED_LIB_NAME_FULL) $(LIB_PATH)/$(SHARED_LIB_NAME_SO) $(LIBDEV_PATH)/$(SHARED_LIB_NAME_SHORT) $(LIBDEV_PATH)/liboidc-agent.a $(INCLUD...
Emit correct button event for Sengled E1E-G7F
@@ -4625,6 +4625,13 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A } } + else if (ind.clusterId() == SENGLED_CLUSTER_ID) + { + if (buttonMap.zclParam0 == pl0) + { + ok = true; + } + } if (ok && buttonMap.button != 0) {
todo: 2 step process for API design review
On potential changes (including extensions) of the API/ABI please check following list: - [ ] [use case](/doc/usecases) for API exists +- [ ] API design [review](/doc/api_review/) template is created by author of API change - [ ] **Before** starting to implement the change: [decision](/doc/decision) for API is in step ...
Add SKIP_EMPTY_PARTS define for QString::split() Will be used to fix depreacted warning after Qt 5.14
@@ -18,6 +18,12 @@ CONFIG(release, debug|release) { LIBS += -L../../release } +equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 15) { + DEFINES += SKIP_EMPTY_PARTS=QString::SkipEmptyParts +} else { + DEFINES += SKIP_EMPTY_PARTS=Qt::SkipEmptyParts +} + greaterThan(QT_MAJOR_VERSION, 4) { QT += core gui widgets seri...
Adapt cs_loader_impl for Guix build.
@@ -29,6 +29,23 @@ message(STATUS "Plugin ${target} implementation") # Create target # +if(OPTION_BUILD_GUIX) + if(DOTNET_VERSION VERSION_EQUAL "2.0" OR DOTNET_VERSION VERSION_GREATER "2.0") + execute_process( + COMMAND ${DOTNET_COMMAND} nuget locals all --list | grep global-packages | awk '{print $NF}' + OUTPUT_VARIAB...
combine feature list items
@@ -18,8 +18,7 @@ Supported are also domains consisting of public keys represented as hexadecimal * small size, ~85KB depending on features, ~35KB compressed * command line interface (kadnode-ctl) * NSS support through /etc/nsswitch.conf -* DNS interface and proxy support -* integrated simplified DNS server and proxy (...
Wrap ISerializable descendants in Handle
@@ -843,18 +843,18 @@ sol::object RTTIHelper::NewHandle(RED4ext::CBaseRTTIType* apType, sol::optional< result.type = apType; result.value = NewInstance(apType, sol::nullopt, &allocator); - // Wrap IScriptable descendants in Handle + // Wrap ISerializable descendants in Handle if (result.value && apType->GetType() == RE...
Declare secret OpenVR functions;
#pragma once +// From openvr_capi.h +extern intptr_t VR_InitInternal(EVRInitError *peError, EVRApplicationType eType); +extern void VR_ShutdownInternal(); +extern bool VR_IsHmdPresent(); +extern intptr_t VR_GetGenericInterface(const char* pchInterfaceVersion, EVRInitError* peError); +extern bool VR_IsRuntimeInstalled()...
Update GCC options for STM32L0 series
@@ -13,16 +13,20 @@ endif() ################################################################# # need to specify this for assembler -set(CMAKE_ASM_FLAGS " -mthumb -mcpu=cortex-m0 -mabi=aapcs -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags") +#####################################################################...
[NFSU] fix sticky steering for high FPS usage
@@ -1051,6 +1051,23 @@ void Init() // another frametime -- seems to affect some gameplay elements... uint32_t* dword_6B5C08 = *hook::pattern("DF E0 F6 C4 41 7A ? 8A 44 24 12 D9 05 ? ? ? ?").count(1).get(0).get<uint32_t*>(13); injector::WriteMemory(dword_6B5C08, FrameTime, true); + + // GAME BUGFIX: fix sticky steering ...
viofs-svc: report Read permission as Read&Execute. A test solution to allow file execution in Windows but without polluting the Linux side.
#define SafeHeapFree(p) if (p != NULL) { HeapFree(GetProcessHeap(), 0, p); } +#define ReadAndExecute(x) ((x) | (((x) & 0444) >> 2)) + typedef struct { FSP_FILE_SYSTEM *FileSystem; @@ -635,8 +637,8 @@ static NTSTATUS GetFileInfoInternal(VIRTFS *VirtFs, if (SecurityDescriptor != NULL) { Status = FspPosixMapPermissionsToS...
pbdrv/imu: Fix error include. This is needed whether the IMU is enabled or not.
#define PBDRV_IMU_H #include <pbdrv/config.h> +#include <pbio/error.h> /** * Opaque handle to an IMU device instance. @@ -18,8 +19,6 @@ typedef struct _pbdrv_imu_dev_t pbdrv_imu_dev_t; #if PBDRV_CONFIG_IMU -#include <pbio/error.h> - /** * Gets the one and only IMU device instance. * @param [out] imu_dev The device inst...
improve renderers (clean up vars)
/= configs /: /===/web/collections /^ (map knot config:collections) /_ /collections-config/ :: this was a dumb way to do do this, clean up -/= extratopic /^ {a=manx b=topicful:collections ~} - /% - /. /& elem +/= content /& elem /& md :: don't render first line if there's a title /; |= a/topic:collections (of-wain:form...
Remove double return statement
@@ -493,9 +493,6 @@ int DeRestPluginPrivate::createSensor(const ApiRequest &req, ApiResponse &rsp) rsp.list.append(rspItem); rsp.httpStatus = HttpStatusOk; return REQ_READY_SEND; - - - return REQ_READY_SEND; } /*! PUT, PATCH /api/<apikey>/sensors/<id>
Build fix for FreeBSD.
@@ -93,7 +93,7 @@ int nsa_socket(int domain, int type, int protocol, const char* properties) pthread_mutex_unlock(&gSocketAPIInternals->nsi_socket_set_mutex); } else { - errno = EUNATCH; + errno = ENXIO; } return(result); }
naive: large batch test
owner.own:(got:orm points.state ~marbud) == :: +++ test-large-batch ^- tang + =+ batch-size=20 :: should be an even number + =/ tx-1 [[marbud-own %transfer-point (addr %marbud-key-1) |] %marbud-key-0] + =/ tx-2 [[marbud-own %transfer-point (addr %marbud-key-0) |] %marbud-key-1] + =+ nonce=0 + :: + =| =^state:naive + =^...
Remove obsolete typedefs
@@ -58,12 +58,6 @@ int select_set_callback(int fd, const struct select_callback *callback); #define EEPROM_CONF_SIZE 1024 #endif -/* These names are deprecated, use C99 names. */ -typedef uint8_t u8_t; -typedef uint16_t u16_t; -typedef uint32_t u32_t; -typedef int32_t s32_t; - typedef unsigned int uip_stats_t; #define ...
Python header decls
@@ -22,6 +22,9 @@ int codes_c_bufr_keys_iterator_get_name(int *iterid, char *name, int len); int codes_c_bufr_keys_iterator_rewind(int *kiter); int codes_c_bufr_keys_iterator_delete(int *iterid); +int codes_c_bufr_multi_element_constant_arrays_off(void); +int codes_c_bufr_multi_element_constant_arrays_on(void); + int g...
docs - add gp_external_enable_filter_pushdown to external table parameters table.
<xref href="guc-list.xml#gp_external_enable_exec" type="section" >gp_external_enable_exec</xref> </p> + <p> + <xref href="guc-list.xml#gp_external_enable_filter_pushdown" type="section" + >gp_external_enable_filter_pushdown</xref> + </p> <p> <xref href="guc-list.xml#gp_external_max_segs" type="section" >gp_external_max...
update ya tool arc switch path-log to server if possible remove unused base class
}, "arc": { "formula": { - "sandbox_id": [366051836], + "sandbox_id": [367180606], "match": "arc" }, "executable": {
Better error reporting in search query expression parser
@@ -28,8 +28,7 @@ namespace carto { using qi::_1; using qi::_2; - unesc_char.add - ("\\a", '\a')("\\b", '\b')("\\f", '\f')("\\n", '\n') + unesc_char.add("\\a", '\a')("\\b", '\b')("\\f", '\f')("\\n", '\n') ("\\r", '\r')("\\t", '\t')("\\v", '\v')("\\\\", '\\') ("\\\'", '\'')("\\\"", '\"'); @@ -113,11 +112,17 @@ namespace...
Update cryptic network device names (Issue
@@ -280,7 +280,9 @@ pappl_dnssd_list( bool ret = false; // Return value cups_array_t *devices; // DNS-SD devices _pappl_dns_sd_dev_t *device; // Current DNS-SD device - char device_uri[1024]; + char device_name[1024], + // Network device name + device_uri[1024]; // Network device URI int last_count, // Last number of d...
Self-permissions issue.
=+ wyt=?=(?($white $green) p.cordon.con) ::x if we just created the story, and invite only, make sure we're in. =. q.cordon.con ::TODO =? - ?: &(neu wyt) q.cordon.con - [our.hid ~ ~] + ?: &(neu wyt) [our.hid ~ ~] + q.cordon.con pa-abet:(~(pa-reform pa man ~ pur) con) :: ++ ra-unconfig
decisions: usually -> sometimes on purpose no rules on it, as it needs to be decided case-by-case.
@@ -95,7 +95,7 @@ For each solution a proposal, rationale and optionally implications should be gi - "Decision", "Rationale" and "Implications" are now filled out and fixed according to the reviews - decisions of this step usually already have an implementation PR -Decisions that need an update, e.g. because assumption...
[mechanics] typo in PrismaticJointR comments
@@ -236,7 +236,7 @@ void PrismaticJointR::computeh(double time, BlockVector& q0, SiconosVector& y) // we can disable some warning #pragma GCC diagnostic ignored "-Wunused-but-set-variable" -/* sympy expreesion: +/* sympy expression: * * G1G2d1 = unrot(G2-G1, q1) *
ChatMessage: fix props destructure
@@ -255,7 +255,7 @@ interface ChatMessageProps { } function ChatMessage(props: ChatMessageProps) { - let { highlighted } = this.props; + let { highlighted } = props; const { msg, previousMsg,
parser: Var dynaload's type doesn't need to be copied.
@@ -1553,10 +1553,10 @@ static lily_type *get_type_raw(lily_parse_state *parser, int flags) that sends flags as 0. */ #define get_type(p) get_type_raw(p, 0) -/* Get a type represented by the name given. Largely used by dynaload. */ +/* Get this type, running a dynaload if necessary. Used bv var dynaload. */ static lily...
enable default peers
@@ -27,8 +27,8 @@ config kadnode # option peerfile '/etc/kadnode/peers.txt' ## Add static peers addresses. -# list peer 'bttracker.debian.org:6881' -# list peer 'router.bittorrent.com:6881' + list peer 'bttracker.debian.org:6881' + list peer 'router.bittorrent.com:6881' ## Bind the DHT to this port. # option port '6881...
example/openssl: disable CRYPTO_memcmp
@@ -30,6 +30,18 @@ diff -Nur ORIG.openssl-1.1.0e/Configure openssl-1.1.0e/Configure unless ($disabled{asan}) { $config{cflags} .= "-fsanitize=address "; } +diff -Nur ORIG.openssl-1.1.0e/crypto/cryptlib.c openssl-1.1.0e/crypto/cryptlib.c +--- ORIG.openssl-1.1.0e/crypto/cryptlib.c 2017-02-16 12:58:21.000000000 +0100 ++++...
Use cmp_ok and is for comparison
@@ -59,8 +59,8 @@ $resp = `curl --silent -o /dev/stderr http://127.0.0.1:${server2_port}/server-st $jresp = decode_json("$resp"); my $num_forwarded = $jresp->{'http3.packet-forwarded'}; -ok($num_forwarded > 0, "some packets were forwarded through event counter"); -ok($num_forwarded == $num_forwarded_received, "packets ...
admin/nagios: daemon-init is now default-init
@@ -201,7 +201,7 @@ install -p -m 0644 %{SOURCE10} %{SOURCE11} %{SOURCE12} html/images/logos/ make %{?_smp_mflags} all #sed -i -e "s| package Embed::Persistent;|#\!%{_bindir}/perl\npackage Embed::Persistent;|" p1.pl -sed -i -e "s|NagiosCmd=/var/log/nagios/rw/nagios.cmd|NagiosCmd=%{_localstatedir}/spool/%{pname}/cmd/nag...
Improve naming of script builder args
@@ -258,7 +258,7 @@ class ScriptBuilder { output.push(lo(stringIndex)); }; - textChoice = (variable, args) => { + textChoice = (setVariable, args) => { const output = this.output; const { strings, variables } = this.options; const choiceText = combineMultipleChoiceText(args); @@ -267,7 +267,7 @@ class ScriptBuilder { s...
isaac's eyre changes to polling parameters as requested by Logan
{$poll p/{i/@uvH t/(list @uvH)}} {$spur p/spur} {$subs p/?($put $delt) q/{dock $json wire path}} - {$view p/ixor q/{$~ u/@ud}} + ::{$view p/ixor q/{$~ u/@ud}} + {$view p/ixor q/{$~ u/@ud} r/(unit @dr)} == :: ++ perk-auth :: parsed auth (turn dep |=({a/@tas $~} (slav %uv a))) :: $of - :+ %view ?>(?=({@ $~} but) i.but) -...
Fix bug related to allocation size in lv_img_decoder.c
@@ -354,7 +354,7 @@ static const uint8_t * lv_img_decoder_built_in_open(lv_img_decoder_t * decoder, } lv_img_decoder_built_in_data_t * user_data = dsc->user_data; - user_data->palette = lv_mem_alloc(sizeof(palette_size * sizeof(lv_color_t))); + user_data->palette = lv_mem_alloc(palette_size * sizeof(lv_color_t)); if(us...
Add LambdaTemplateParam test.
@@ -25,6 +25,10 @@ Y_UNIT_TEST_SUITE(Demangle) { Check("_ZNKSt3__110__function6__funcIZN4DLCL8DLFutureIP15AnalysenManagerE3setINS_8functionIFS5_vEEEJEEEvT_DpOT0_EUlvE_NS_9allocatorISF_EEFvvEE7__cloneEv", "std::__1::__function::__func<void DLCL::DLFuture<AnalysenManager*>::set<std::__1::function<AnalysenManager* ()> >(s...
Update BCC to fix trace bind issue
@@ -6,7 +6,7 @@ ARG BUILDER_IMAGE=debian:bullseye # BCC built from the gadget branch in the kinvolk/bcc fork. # See BCC section in docs/CONTRIBUTING.md for further details. -ARG BCC="quay.io/kinvolk/bcc:a432665d57f5fe10e30e6420208462711f865d5f-focal-release" +ARG BCC="quay.io/kinvolk/bcc:401c6c81f131d539e49646ab337d3a7...
Fix dname_has_label() code review changes
@@ -549,9 +549,13 @@ dname_lab_startswith(uint8_t* label, char* prefix, char** endptr) int dname_has_label(uint8_t* dname, uint8_t* label) { - uint8_t lablen = *dname++; - if(memlowercmp(dname, label, lablen) == 0) + uint8_t lablen = *dname; + while(lablen) { + if(lablen == *label && memlowercmp(dname, label, lablen) =...
Update hkRootLevelContainer.cs fix compiler warnings
@@ -5,9 +5,9 @@ public unsafe partial struct hkRootLevelContainer { public struct NamedVariant { - hkStringPtr Name; - hkStringPtr ClassName; - hkRefPtr<hkReferencedObject> Variant; + public hkStringPtr Name; + public hkStringPtr ClassName; + public hkRefPtr<hkReferencedObject> Variant; }; public hkArray<NamedVariant> ...
Solve architecture info on WindowsDesktopSystemInformationImpl.cpp
@@ -132,7 +132,7 @@ namespace PAL_NS_BEGIN { const PCSTR c_currentVersion_Key = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"; const PCSTR c_buildLabEx_ValueName = "BuildLabEx"; DWORD size = sizeof(buff); - RegGetValueA(HKEY_LOCAL_MACHINE, c_currentVersion_Key, c_buildLabEx_ValueName, RRF_RT_REG_SZ, NULL, (char*)bu...
Corrected ZCash difficulty calculation. Fixes
@@ -166,7 +166,7 @@ namespace MiningCore.Blockchain.ZCash BlockTemplate = blockTemplate; JobId = jobId; - Difficulty = (double) new BigRational(ZCashConstants.Diff1b, BlockTemplate.Target.HexToByteArray().ToBigInteger()); + Difficulty = (double) new BigRational(ZCashConstants.Diff1b, BlockTemplate.Target.HexToByteArray...
Use pkt_ts which is the timestamp when a packet is received
@@ -6636,7 +6636,8 @@ conn_recv_delayed_handshake_pkt(ngtcp2_conn *conn, const ngtcp2_pkt_hd *hd, ngtcp2_acktr_immediate_ack(&pktns->acktr); } - rv = ngtcp2_conn_sched_ack(conn, &pktns->acktr, hd->pkt_num, require_ack, ts); + rv = ngtcp2_conn_sched_ack(conn, &pktns->acktr, hd->pkt_num, require_ack, + pkt_ts); if (rv !=...
add optional installation folder for macOS to compiling documentation
@@ -120,12 +120,12 @@ or execute (Debian-based systems only): `apt-get install gcc build-essential cma 1. Change into the project source directory: `cd stlink` 2. Run `make clean` -- required by some linux variants. 3. Run `make release` to create the _Release_ target -4. Run `make install` to full install the package ...
Update lv_ta.c
@@ -1623,7 +1623,6 @@ static void get_cursor_style(lv_obj_t * ta, lv_style_t * style_res) style_res->body.padding.top = 0; style_res->body.padding.bottom = 0; style_res->line.width = 1; - style_res->body.opa = LV_OPA_COVER; } }
[components][USB][Device][Core]fix the device_qualifier error respond on fullspeed
@@ -194,7 +194,18 @@ static rt_err_t _get_descriptor(struct udevice* device, ureq_t setup) _get_string_descriptor(device, setup); break; case USB_DESC_TYPE_DEVICEQUALIFIER: + /* If a full-speed only device (with a device descriptor version number equal to 0200H) receives a + GetDescriptor() request for a device_qualifi...
Improve decoder stopped event The syntax was correct, but less readable, and it unnecessarily zeroed the fields other than "type". Create the event properly, from a separate method.
@@ -33,6 +33,12 @@ static void push_frame(struct decoder *decoder) { SDL_PushEvent(&new_frame_event); } +static void notify_stopped(void) { + SDL_Event stop_event; + stop_event.type = EVENT_DECODER_STOPPED; + SDL_PushEvent(&stop_event); +} + static int run_decoder(void *data) { struct decoder *decoder = data; int ret =...
Fix ODCID handling by the server
@@ -1339,9 +1339,6 @@ int picoquic_incoming_segment( /* Verify that the source CID matches expectation */ if (picoquic_is_connection_id_null(cnx->path[0]->remote_cnxid)) { cnx->path[0]->remote_cnxid = ph.srce_cnx_id; - if (cnx->client_mode == 0) { - cnx->local_parameters.original_destination_connection_id = ph.dest_cnx...
Bipship: Add SKUID for non-keyboard backlight SKUs BRANCH=octopus TEST=make buildall -j. Tested-by: Justin TerAvest
@@ -332,7 +332,7 @@ __override uint32_t board_override_feature_flags0(uint32_t flags0) * Remove keyboard backlight feature for devices that don't support it. */ if (sku_id == 33 || sku_id == 36 || sku_id == 51 || - sku_id == 52 || sku_id == 66 || sku_id == 68) + sku_id == 52 || sku_id == 53 || sku_id == 66 || sku_id ==...
Fixed item WEIGHT property not working correctly This issue was caused by previous commit
@@ -32,7 +32,7 @@ CItemBase::CItemBase(ITEMID_TYPE id) : CBaseBaseDef(RESOURCE_ID(RES_ITEMDEF, id) if ( id < ITEMID_MULTI ) GetItemData(id, &tiledata); else - tiledata.m_weight = 0xFF; + tiledata.m_weight = UCHAR_MAX; m_dwFlags = tiledata.m_flags; m_type = GetTypeBase(id, tiledata); @@ -51,7 +51,7 @@ CItemBase::CItemBa...
Shortcut icons are prevented from being dragged off-screen
@@ -355,6 +355,21 @@ static void _end_mouse_drag(mouse_interaction_state_t* state, Point mouse_point) } } +static Rect rect_bind_to_screen_frame(Rect inp) { + inp.origin.x = max(inp.origin.x, 0); + inp.origin.y = max(inp.origin.y, 0); + + if (inp.origin.x + inp.size.width >= _screen.resolution.width) { + uint32_t overh...
[Docs] specify Digital Signature byte order, and esp_ds_sign() clarification
@@ -84,6 +84,9 @@ typedef struct esp_digital_signature_data { * This is only used for encrypting the RSA parameters by calling esp_ds_encrypt_params(). * Afterwards, the result can be stored in flash or in other persistent memory. * The encryption is a prerequisite step before any signature operation can be done. + * +...
natpmp: formatting and cleanup old pmp handle
@@ -75,7 +75,7 @@ maxRetries = 3 -- How long to wait between retries. networkRetryDelay :: Int -networkRetryDelay = 5 * 1000000 +networkRetryDelay = 5 * 1_000_000 -- Messages sent from the main thread to the port mapping communication thread. data PortThreadMsg @@ -172,6 +172,7 @@ portThread q stderr = do displayShow (...
SOVERSION bump to version 7.13.0
@@ -72,8 +72,8 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # Major version is changed with every backward non-compatible API/ABI change, minor version changes # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJ...
Limit bounds of start selection area Clicking outside the grid are was unselecting the notes making it impossible to realize other actions like move as it requires clicking on the pencil icon
@@ -199,6 +199,8 @@ export const RollChannelSelectionAreaFwd = ({ selectionOrigin, cellSize, selectCellsInRange, + addToSelection, + selectedPatternCells, dispatch, ] ); @@ -233,12 +235,10 @@ export const RollChannelSelectionAreaFwd = ({ useEffect(() => { window.addEventListener("mouseup", handleMouseUp); - window.addE...
Improve code to force high to be > low
@@ -989,14 +989,13 @@ void compute_quantized_weights_for_decimation( // Quantize the weight set using both the specified low/high bounds and standard 0..1 bounds - /* TODO: WTF issue that we need to examine some time. */ - if (!((high_bound - low_bound) > 0.5f)) + /* TODO: WTF issue that we need to examine some time. T...
Hall can now perform customizable filtering on incoming messages. Uses a `|=(telegram ...)` supplied by /app/hall/filter.hoon
/- hall :: structures /+ hall, hall-legacy :: libraries /= seed /~ !>(.) +/= filter-gram + /^ $-(telegram:hall telegram:hall) + /| /: /%/filter /!noun/ + /~ |=(t/telegram:hall t) + == :: :::: :: ?. (so-admire aut.gam) +> :: clean up the message to conform to our rules. =. sep.gam (so-sane sep.gam) + =. gam (filter-gram...
fixed custom cursor rendering
@@ -1937,7 +1937,7 @@ static void blitCursor() tic_mem* tic = impl.studio.tic; tic80_mouse* m = &tic->ram.input.mouse; - if(tic->input.mouse && m->x < TIC80_FULLWIDTH && m->y < TIC80_FULLHEIGHT) + if(tic->input.mouse && !m->relative && m->x < TIC80_FULLWIDTH && m->y < TIC80_FULLHEIGHT) { const tic_bank* bank = &tic->ca...
Silence a ton of clang warnings
# define SIMDE__FUNCTION_ATTRIBUTES HEDLEY_INLINE SIMDE__ARTIFICIAL static #endif +#if HEDLEY_HAS_WARNING("-Wused-but-marked-unused") +# define SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED _Pragma("clang diagnostic ignored \"-Wused-but-marked-unused\"") +#else +# define SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSE...
update-latest: check if hub exists first
@@ -5,4 +5,6 @@ git push origin :refs/tags/$TAG_NAME git tag -fa -m "$TAG_NAME" $TAG_NAME git push origin master --tags +if which hub; then hub release -f "%T (%S) %n" --include-drafts | grep " (draft)" | awk '{print $1}' | xargs -t -n1 hub release delete +fi \ No newline at end of file
test-suite: switch to pkgconfig for build test and update module refresh to match latest syntax
@@ -27,7 +27,7 @@ setup() { } @test "[spack] test build" { - spack install libjpeg-turbo + spack install pkgconf assert_success } @@ -36,11 +36,11 @@ setup() { spack compiler find assert_success - spack install libjpeg-turbo%clang + spack install pkgconf%clang assert_success } @test "[spack] test module refresh" { - ec...
Fix 0 -> NULL, indentation
@@ -522,7 +522,7 @@ static BIGNUM *asn1_string_to_bn(const ASN1_INTEGER *ai, BIGNUM *bn, } ret = BN_bin2bn(ai->data, ai->length, bn); - if (ret == 0) { + if (ret == NULL) { ASN1err(ASN1_F_ASN1_STRING_TO_BN, ASN1_R_BN_LIB); return NULL; }
fixup! netcmd/ping: fix build breaks and wrong function name in the logs
@@ -212,14 +212,14 @@ static void ping_recv(int family, int s, struct timespec *ping_time) fromlen = sizeof(struct sockaddr_in); } else { printf("ping_recv: invalid family\n"); - return ERROR; + return; } /* allocate memory due to difference of size between ipv4/v6 socket structure */ from = malloc(fromlen); if (from =...
BugID:17657855:[gen_linkkit_sdk.py] remove tests before export SDK
@@ -61,6 +61,11 @@ def main(argv): # replace ip address print("[INFO]: replace test information") replace(targetFilename, replace_ip_rules) + + # remove tests directory + print("[INFO]: remove %s" % os.path.join(build_dir, SDKNAME, "tests")) + shutil.rmtree(os.path.join(build_dir, SDKNAME, "tests")) + # Generate tarbal...
Fixed tagXSstrandedData.awk script.
@@ -6,11 +6,9 @@ BEGIN { { - printf $0; - - if (substr($1,1,1)=="@") - {# header - nothing to do - printf "\n"; + if (substr($1,1,1)=="@" || $4==0) + {# header, or unmapped read - just print + print; next; }; @@ -25,11 +23,11 @@ BEGIN { }; if (mate>0 && mate <3) - {# mate is defined + {# mate is defined - add XS tag if...
extmod/modlwip: Change #ifdef to #if for check of MICROPY_PY_LWIP. Otherwise this code will be included if MICROPY_PY_LWIP is defined to 0.
@@ -1500,7 +1500,7 @@ STATIC mp_obj_t lwip_print_pcbs() { } MP_DEFINE_CONST_FUN_OBJ_0(lwip_print_pcbs_obj, lwip_print_pcbs); -#ifdef MICROPY_PY_LWIP +#if MICROPY_PY_LWIP STATIC const mp_rom_map_elem_t mp_module_lwip_globals_table[] = { { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_lwip) },
BugID:26368870:add include folder for mbmaster
@@ -27,7 +27,7 @@ else ifeq ($(COMPILER),armcc) GLOBAL_DEFINES += __BSD_VISIBLE endif -GLOBAL_INCLUDES += include ./ +GLOBAL_INCLUDES += include ./ ../../../include/bus/modbus GLOBAL_DEFINES += AOS_COMP_MBMASTER AOS_COMP_MBMASTER := y
Valgrind test fixes (leaks due to unreaped threads.)
@@ -141,10 +141,14 @@ TestMain("Platform Operations", { Convey("It ran", { nni_usleep(50000); // for context switch So(val == 1); + nni_thr_fini(&thr); }) Convey("We can reap it", { nni_thr_fini(&thr); }) + Reset({ + nni_thr_fini(&thr); + }) }) }) Convey("Condition variables work", { @@ -198,5 +202,9 @@ TestMain("Platf...
fix type float complex -> liquid_float_complex
@@ -4097,7 +4097,7 @@ int qpacketmodem_decode_soft(qpacketmodem _q, unsigned char * _payload); int qpacketmodem_decode_soft_sym(qpacketmodem _q, - float complex _symbol); + liquid_float_complex _symbol); int qpacketmodem_decode_soft_payload(qpacketmodem _q, unsigned char * _payload);
add test to avoid searching arenas when possible
@@ -163,8 +163,8 @@ void* _mi_arena_alloc_aligned(size_t size, size_t alignment, bool* commit, bool* // try to allocate in an arena if the alignment is small enough // and the object is not too large or too small. if (alignment <= MI_SEGMENT_ALIGN && - // size <= MI_ARENA_MAX_OBJ_SIZE && - size >= MI_ARENA_MIN_OBJ_SIZE...