message
stringlengths
6
474
diff
stringlengths
8
5.22k
CDRIVER 3903 fix doc to ENABLE_AUTOMATIC_INIT_AND_CLEANUP setting homogeneous
@@ -26,4 +26,4 @@ For portable, future-proof code, always call :symbol:`mongoc_init` and :symbol:` .. code-block:: none - cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=NO + cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF
Update yfm for ya tool to 2.13.5
}, "yfm": { "formula": { - "sandbox_id": 649354690, + "sandbox_id": 652174899, "match": "yfm" }, "executable": {
io CHANGE more efficient way of finding endtag in nc_read_until
@@ -197,7 +197,7 @@ nc_read_until(struct nc_session *session, const char *endtag, size_t limit, uint struct timespec *ts_act_timeout, char **result) { char *chunk = NULL; - size_t size, count = 0, r, len; + size_t size, count = 0, r, len, i, matched = 0; assert(session); assert(endtag); @@ -215,7 +215,7 @@ nc_read_unti...
board/nucleo-dartmonkey/board.c: Format with clang-format BRANCH=none TEST=none
@@ -38,8 +38,8 @@ static void ap_deferred(void) * in S0: SLP_ALT_L is 1 and SLP_L is 1. * in S5/G3, the FP MCU should not be running. */ - int running = gpio_get_level(GPIO_SLP_ALT_L) - && gpio_get_level(GPIO_SLP_L); + int running = gpio_get_level(GPIO_SLP_ALT_L) && + gpio_get_level(GPIO_SLP_L); if (running) { /* S0 */...
demonstrate that multiple probes do actually work
@@ -38,6 +38,13 @@ int trace_quicly__accept(struct pt_regs *ctx) { events.perf_submit(ctx, &event, sizeof(event)); return 0; } + +int trace_quicly__crypto_handshake(struct pt_regs *ctx) { + struct event_t event = {}; + bpf_usdt_readarg(2, ctx, &event.at); + events.perf_submit(ctx, &event, sizeof(event)); + return 0; +}...
fix: add BOAT_TEST_USE_ETHEREUM BOAT_TEST_USE_FABRIC in makefile
@@ -13,10 +13,14 @@ ifeq ($(BOAT_TEST_USE_CHAINMAKER), 1) endif tests_BoAT_ethereum_linuxDefault: +ifeq ($(BOAT_TEST_USE_ETHEREUM), 1) make -C BoAT_ethereum_linuxDefault all +endif tests_BoAT_fabric_linuxDefault: +ifeq ($(BOAT_TEST_USE_FABRIC), 1) make -C BoAT_fabric_linuxDefault all +endif tests_BoAT_platon_linuxDefau...
add cache definition
@@ -48,15 +48,29 @@ extern "C" { #define HWREG8(x) (*((volatile rt_uint8_t *)(x))) #endif +#ifndef RT_CPU_CACHE_LINE_SZ +#define RT_CPU_CACHE_LINE_SZ 32 +#endif + +enum RT_HW_CACHE_OPS +{ + RT_HW_CACHE_FLUSH = 0x01, + RT_HW_CACHE_INVALIDATE = 0x02, +}; + /* * CPU interfaces */ void rt_hw_cpu_icache_enable(void); void r...
Update coding documentation Add conventions for shell shebangs.
@@ -485,6 +485,15 @@ To reformat a Markdown document in [TextMate][] every time you save it, please f - Please only use [POSIX](https://en.wikipedia.org/wiki/POSIX) functionality. +#### Shebang + +Every shell script must start with either of two shebangs: + +* `#!/bin/sh` +* `#!/usr/bin/env <shell>`, where `<shell>` is...
ebisp/std: Validate arglist to defun in the same way as for lambda * One one level, this is simply for parallelism, but on another it covers one particular failure mode (a malformed arglist for a named function) in a slightly cleaner manner.
@@ -247,6 +247,10 @@ defun(void *param, Gc *gc, struct Scope *scope, struct Expr args) return result; } + if (!list_of_symbols_p(args_list)) { + return wrong_argument_type(gc, "list-of-symbolsp", args_list); + } + return eval(gc, scope, list(gc, "qee", "set", name, lambda(gc, args_list, body)));
tests/sigaltstack: line wrap inline assembly
@@ -34,11 +34,14 @@ int main() { // This is used to trash the stack to ensure sigaltstack actually switched stacks. #if defined(__x86_64__) - asm volatile ("mov $0, %rsp\n\tpush $0"); + asm volatile ("mov $0, %rsp\n" + "\t" "push $0"); #elif defined(__aarch64__) - asm volatile ("mov sp, %0\n\tstp x0, x1, [sp, #-16]!" :...
Tweak module/expand-path docs
@@ -699,16 +699,16 @@ static const JanetReg corelib_cfuns[] = { { "module/expand-path", janet_core_expand_path, JDOC("(module/expand-path path template)\n\n" - "Expands a path template as found in module/paths for module/find. " - "This takes in a path (the argument to require) and a template string, template, " + "Exp...
s5j/Kconfig: remove knobs for the debug UART Now that the debug UART is configured using CONFIG_UART4_XXX, we do not need to have these Kconfig entries.
@@ -170,35 +170,6 @@ config S5J_UARTDBG select ARCH_HAVE_UART4 select ARCH_HAVE_SERIAL_TERMIOS -menu "Debug UART Configuration" - depends on S5J_UARTDBG - -config UARTDBG_RXBUFSIZE - int "uartdbg rx buffer size" - default 256 - -config UARTDBG_TXBUFSIZE - int "uartdbg tx buffer size" - default 256 - -config UARTDBG_BAU...
don't pass const string where a modifyable string is expected
@@ -93,13 +93,14 @@ static int write_string(BIO *b, const char *buf, size_t n) */ static int tap_write_ex(BIO *b, const char *buf, size_t size, size_t *in_size) { + static char empty[] = ""; BIO *next = BIO_next(b); size_t i; int j; for (i = 0; i < size; i++) { if (BIO_get_data(b) == NULL) { - BIO_set_data(b, ""); + BI...
AutoSyncThin Fix
@@ -387,7 +387,7 @@ namespace Checkpoints { const CBlockThinIndex *pindex = pindexBestHeader; // Search backward for a block within max span and maturity window - while (pindex->pprev && pindex->nHeight + nCheckpointSpan > pindexBest->nHeight) + while (pindex->pprev && (pindex->GetBlockTime() + nCheckpointSpan * nTarge...
fix flag reference
@@ -130,7 +130,7 @@ There are several flags you may set in the `redisOptions` struct to change defau | REDIS\_OPT\_REUSEADDR | Tells hiredis to set the [SO_REUSEADDR](https://man7.org/linux/man-pages/man7/socket.7.html) socket option | | REDIS\_OPT\_PREFER\_IPV4<br>REDIS\_OPT\_PREFER_IPV6<br>REDIS\_OPT\_PREFER\_IP\_UNS...
[mruby] Delegate ENV passing to rake invocation CMake's env helper is broken on Windows OS :/
@@ -14,12 +14,6 @@ if(CMAKE_BUILD_TYPE) string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE_UC) endif() -if(WIN32) - set(CMAKE_EXE "cmake") -else() - set(CMAKE_EXE "${CMAKE_COMMAND}") -endif() - find_package(Git) if(Git_FOUND) execute_process( @@ -257,7 +251,7 @@ ExternalProject_Add(mruby_vendor CONFIGURE_COMMAND "" BUILD_IN...
framework/arastorage: fix logic issue and lock release for bptree indexing 1. get_next, unset lock for abnormal case 2. get_next, update cache range update get new bucket 3. modify_cache, unlock mutex before return for exceptional case
@@ -900,11 +900,6 @@ static tuple_id_t get_next(index_iterator_t *iterator, uint8_t matched_condition DB_LOG_D("BUCKET ALREADY LOCKED IN GET NEXT SPINNING\n"); pthread_mutex_lock(&(tree->bucket_lock)); } - tree->lock_buckets[cache.bucket_id] = 1; - pthread_mutex_unlock(&(tree->bucket_lock)); - - cache.start = 0; - cach...
docs: update module example for latest families
proc ModulesHelp { } { puts stderr " " -puts stderr "This module loads the example library built with the gnu compiler" -puts stderr "toolchain and the openmpi MPI stack." +puts stderr "This module loads the example library built with the gnu7 compiler" +puts stderr "toolchain and the openmpi3 MPI stack." puts stderr "...
[cmake] fix build without documentation
@@ -100,8 +100,6 @@ macro(finalize_doc) add_dependencies(doxyrest doxygen) add_dependencies(html doxyrest) endif() - endif() - # --- Generates conf.py, to describe sphinx setup --- # !! Should be call after doxygen setup # to have a propre DOXYGEN_INPUT value. @@ -111,6 +109,8 @@ macro(finalize_doc) configure_file( "${...
u3: arvo interface
#include <stdio.h> #include "all.h" -#define _CVX_WISH 22 -#define _CVX_POKE 47 -#define _CVX_PEEK 46 +#define _CVX_LOAD 4 +#define _CVX_PEEK 22 +#define _CVX_POKE 23 +#define _CVX_WISH 10 /* u3v_life(): execute initial lifecycle, producing Arvo core. */
README.md: Use version 2.05.28
@@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices ### Install deCONZ 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.26-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.28-qt5.deb 2. Install deCON...
Fix overwrite-only under Zephyr As reported by issue some #ifdefery was wrongly done, which broke overwrite-only mode under Zephyr.
@@ -1523,7 +1523,7 @@ boot_swap_if_needed(int *out_swap_type) /* If a partial swap was detected, complete it. */ if (bs.idx != BOOT_STATUS_IDX_0 || bs.state != BOOT_STATUS_STATE_0) { -#if MCUBOOT_OVERWRITE_ONLY +#ifdef MCUBOOT_OVERWRITE_ONLY /* Should never arrive here, overwrite-only mode has no swap state. */ assert(...
Recognise clang -fsanitize options and translate them Because we depend on knowing if clang's address, memory or undefinedbehavior sanitizers are enabled, we make an extra effort to detect them among the C flags, and adjust the %disabled values accordingly.
@@ -1340,6 +1340,27 @@ unless ($disabled{threads}) { } } +# Find out if clang's sanitizers have been enabled with -fsanitize +# flags and ensure that the corresponding %disabled elements area +# removed to reflect that the sanitizers are indeed enabled. +my %detected_sanitizers = (); +foreach (grep /^-fsanitize=/, @{$c...
[core] disable Nagle if streaming to backend disable Nagle algorithm if streaming to backend and content-length is unknown at the point where lighttpd is about to begin sending data to backend
@@ -1796,6 +1796,16 @@ static handler_t gw_write_request(server *srv, gw_handler_ctx *hctx) { if (HANDLER_GO_ON != rc) return rc; } + /*(disable Nagle algorithm if streaming and content-length unknown)*/ + if (AF_UNIX != hctx->host->family) { + connection *con = hctx->remote_conn; + if (-1 == con->request.content_lengt...
Use KERNEL_DEFINITIONS rather than COMMON_OPTS to pass -march=skylake-avx512
@@ -43,8 +43,7 @@ endif () if (DEFINED TARGET) if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512) - set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512") - set (FCOMMON_OPT "${FCOMMON_OPT} -march=skylake-avx512") + set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512") endif() endif()
dpdk: update Cisco VIC port type Recent VIC models can support 25, 50, and 100Gbps links. Use the helper (port_type_from_link_speed) to set the port type as it supports all possible link speeds.
@@ -441,10 +441,7 @@ dpdk_lib_init (dpdk_main_t * dm) /* Cisco VIC */ case VNET_DPDK_PMD_ENIC: - if (l.link_speed == 40000) - xd->port_type = VNET_DPDK_PORT_TYPE_ETH_40G; - else - xd->port_type = VNET_DPDK_PORT_TYPE_ETH_10G; + xd->port_type = port_type_from_link_speed (l.link_speed); break; /* Intel Red Rock Canyon */
arch/arm/stm32_ccm.h : Replace mm_xalloc to xalloc_user_at It is not good to use mm_xalloc directly from user side. So replace them to xalloc_user_at().
* allocators can be used just like the standard memory allocators. */ -#define ccm_malloc(s) mm_malloc(&g_ccm_heap, s) -#define ccm_zalloc(s) mm_zalloc(&g_ccm_heap, s) -#define ccm_calloc(n, s) mm_calloc(&g_ccm_heap, n, s) -#define ccm_free(p) mm_free(&g_ccm_heap, p) -#define ccm_realloc(p, s) mm_realloc(&g_ccm_heap, p...
Remove trailing \.
@@ -47,7 +47,7 @@ static char *config_property_sctp_tcp = "{\ \"precedence\": 1\ }\ ]\ -}";\ +}"; static char *config_property_tcp = "{\ \"transport\": [\ {\ @@ -55,7 +55,7 @@ static char *config_property_tcp = "{\ \"precedence\": 1\ }\ ]\ -}";\ +}"; static char *config_property_sctp = "{\ \"transport\": [\ {\
Roller: do not draw rectangle highlight on borders
@@ -328,8 +328,12 @@ static bool lv_roller_design(lv_obj_t * roller, const lv_area_t * mask, lv_desig if((font_h & 0x1) && (style->text.line_space & 0x1)) rect_area.y1--; /*Compensate the two rounding error*/ rect_area.y2 = rect_area.y1 + font_h + style->text.line_space - 1; - rect_area.x1 = roller->coords.x1; - rect_a...
add bsp stm32/stm32l412-st-nucleo
@@ -109,6 +109,7 @@ env: - RTT_BSP='stm32/stm32l4r9-st-eval' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l010-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l053-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' + - RTT_BSP='stm32/stm32l412-st-nucleo' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='stm32/stm32l...
The need for MANGOHUD_DLSYM
@@ -84,7 +84,11 @@ For Steam games, you can add this as a launch option: Or alternatively, add `MANGOHUD=1` to your shell profile (Vulkan only). -Some linux native games overrides LD_PRELOAD and stopping MangoHud from working. You can sometimes fix this by editing LD_PRELOAD in the start script +## OpenGL + +OpenGL gam...
tup: prettier clang error colors;
@@ -83,6 +83,7 @@ cflags = { '-Wextra', config.strict and '-Werror' or '', '-Wno-unused-parameter', + '-fdiagnostics-color=always', '-fvisibility=hidden', config.optimize and '-fdata-sections -ffunction-sections' or '', '-Isrc',
BugID:18684361: remove upper components dependencies of ssc1667
@@ -10,7 +10,7 @@ SUPPORT_MBINS := no HOST_MCU_NAME := SSCP131 ENABLE_VFP := 0 -$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) osal_aos newlib_stub +$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) newlib_stub $(NAME)_SOURCES += config/k_config.c \ startup/board.c \
fixed cyclic import bug
@@ -7,7 +7,6 @@ import numpy as np import yaml from inspect import getmembers, isfunction, signature -import pyccl from . import ccllib as lib from .errors import CCLError, CCLWarning from ._types import error_types @@ -198,13 +197,19 @@ class Cosmology(object): # Go through all functions in the main package and the su...
btc: added tile
:: Scrys :: x/scanned: (list xpub) of all scanned wallets :: x/balance/xpub: balance (in sats) of wallet -/- *btc-wallet, bp=btc-provider +/- *btc-wallet, bp=btc-provider, file-server, launch-store /+ dbug, default-agent, bl=btc, bc=bitcoin, bip32 |% ++ defaults ++ on-init ^- (quip card _this) ~& > '%btc-wallet initial...
exec_always: Search for executables in /usr/lib/sway
@@ -51,7 +51,41 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) { if ((pid = fork()) == 0) { // Fork child process again setsid(); + if ((*child = fork()) == 0) { + // Acquire the current PATH + char *path = getenv("PATH"); + const char *extra_path = ":/usr/lib/sway"; + const size_t extra_size = sizeof("/...
stream reuse, move drop in tcp_reuse test to timeout section of test.
@@ -61,30 +61,6 @@ else exit 1 fi -echo "> query drop.net." -$PRE/streamtcp -f 127.0.0.1@$UNBOUND_PORT drop.net. A IN >outfile 2>&1 -cat outfile -if test "$?" -ne 0; then - echo "exit status not OK" - echo "> cat logfiles" - cat outfile - cat unbound2.log - cat unbound.log - echo "Not OK" - exit 1 -fi -if grep "rcode: ...
OpenXR: Fix right actions not being marked as active in xrSyncActions call
@@ -881,7 +881,7 @@ static void openxr_update(float dt) { XrActionsSyncInfo syncInfo = { .type = XR_TYPE_ACTIONS_SYNC_INFO, - .countActiveActionSets = 1, + .countActiveActionSets = 2, .activeActionSets = (XrActiveActionSet[]) { { state.actionSet, state.actionFilters[0] }, { state.actionSet, state.actionFilters[1] }
nrf/Makefile: Use C11 instead of Gnu99. Some constructs require C11 which GCC silently allows.
@@ -100,7 +100,7 @@ endif CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES)) -CFLAGS += $(INC) -Wall -Werror -g -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) +CFLAGS += $(INC) -Wall -Werror -g -ansi -std=c11 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) CFLAGS += -fno-strict-aliasing CFLAGS += -Iboards/$(BOARD) C...
[kernel][mem.c] tighten size before check with mem_size_aligned
@@ -299,6 +299,10 @@ void *rt_smem_alloc(rt_smem_t m, rt_size_t size) /* alignment size */ size = RT_ALIGN(size, RT_ALIGN_SIZE); + /* every data block must be at least MIN_SIZE_ALIGNED long */ + if (size < MIN_SIZE_ALIGNED) + size = MIN_SIZE_ALIGNED; + if (size > small_mem->mem_size_aligned) { RT_DEBUG_LOG(RT_DEBUG_MEM...
net/lwip: na message handler handling na messages with exception control according to RFC 4861
@@ -309,23 +309,36 @@ void nd6_input(struct pbuf *p, struct netif *inp) nd6_send_q(i); } } else { + s32_t nd6_oflag = ND6H_NA_FLAG(na_hdr) & ND6_FLAG_OVERRIDE; + s32_t nd6_sflag = ND6H_NA_FLAG(na_hdr) & ND6_FLAG_SOLICITED; + s32_t nd6_rflag = ND6H_NA_FLAG(na_hdr) & ND6_FLAG_ROUTER; + s32_t lladdr_diff = 0; + if (lladdr...
Update EthereumConstants.cs Start of integration of ETHOne And PinkChain
@@ -46,12 +46,24 @@ public class CallistoConstants public const decimal TreasuryPercent = 50m; } +public class EthOneConstants +{ + public const decimal BaseRewardInitial = 2.0m; +} + +public class PinkConstants +{ + public const decimal BaseRewardInitial = 1.0m; +} + public enum EthereumNetworkType { Main = 1, Ropsten...
Allow CMake build to work with git submodules If a parent repo adds s2n as a submodule, then CMAKE_SOURCE_DIR contains the directory of the parent repo, not the s2n directory. We instead want the directory that contains the current CMAKELists.txt file, which will be present in the CMAKE_CURRENT_LIST_DIR env variable.
@@ -115,8 +115,8 @@ else() enable_language(ASM) try_compile(PQ_ASM_COMPILES ${CMAKE_BINARY_DIR} SOURCES - "${CMAKE_SOURCE_DIR}/tests/unit/s2n_pq_asm_noop_test.c" - "${CMAKE_SOURCE_DIR}/pq-crypto/sike_r2/fp_x64_asm.S") + "${CMAKE_CURRENT_LIST_DIR}/tests/unit/s2n_pq_asm_noop_test.c" + "${CMAKE_CURRENT_LIST_DIR}/pq-crypto...
updates %eyre to get domains from jael so that galaxies automatically get ACME certificates
== == $: $g :: to %gall $% {$deal p/sock q/cush:gall} :: full transmission + == == :: + $: %j :: to %jael + $% [%turf ~] :: view domains == == == :: ++ sign :: in result $<- $% $: $a :: by %ames $: $f $% [%made date=@da result=made-result:ford] :: == == + $: %j :: from %jael + $% [%turf turf=(list turf)] :: bind to dom...
drivers/telnet: Return the partial sent bytes in telnet_write
@@ -926,7 +926,7 @@ static ssize_t telnet_write(FAR struct file *filep, FAR const char *buffer, { nerr("ERROR: psock_send failed '%s': %zd\n", priv->td_txbuffer, ret); - return ret; + goto out; } /* Reset the index to the beginning of the TX buffer. */ @@ -944,7 +944,7 @@ static ssize_t telnet_write(FAR struct file *fi...
android: update emulator startup
@@ -437,7 +437,7 @@ def run_emulator(options = {}) puts cmd start_emulator(cmd) - cmd_start_emu = "#{$adb} -e wait-for-device shell getprop sys.boot_completed" + cmd_start_emu = "#{$adb} -e wait-for-device" puts cmd_start_emu raise "Android emulator failed to start." unless system(cmd_start_emu) @@ -447,16 +447,11 @@ d...
decisions: clarify relations
@@ -81,10 +81,12 @@ This can be: ## Related Decisions This section has links to other decisions with description what the relation is. +One-side relations are allowed, not every decision must link back. Decisions that give constraints must be listed in "Constraints" above. > Note: > Sometimes the best solution is only ...
Work around POWER8BE bugs on FreeBSD (ELFv2) for
@@ -232,3 +232,11 @@ QCABS_KERNEL = ../generic/cabs.c #Dump kernel CGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c ZGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c + +ifeq ($(__BYTE_ORDER__),__ORDER_BIG_ENDIAN__) +IDAMAXKERNEL = ../arm/iamax.c +IDAMINKERNEL = ../arm/iamin.c +IZAMAXKERNEL = ../arm/izamax.c +IZAMINKERNEL ...
prevent closing console right after process error in windows
@@ -319,5 +319,11 @@ int main(int argc, char *argv[]) { avformat_network_deinit(); // ignore failure +#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE) + if (res != 0) { + fprintf(stderr, "Press any key to continue...\n"); + getchar(); + } +#endif return res; }
correct usage message in dfilemaker Give the user correct guidance about the relationship between ntotal and nlevels.
@@ -585,7 +585,8 @@ int main(int narg, char** arg) *----------------------------------------------*/ if (narg < 4) { if (rank == 0) { - printf("Usage: dfilemaker <nitems> <nlevels> <maxflen> [-i seed]\n"); + printf("Usage: dfilemaker <ntotal> <nlevels> <maxflen> [-i seed]\n"); + printf(" where ntotal > (levels * (nleve...
collapse unused "nex"
pig [~(uni ry ryt n.pig) l.pig r.pig] ?: (gor -.ryt -.n.pig) - =+ nex=$(pig l.pig) - =. l.pig nex + =. l.pig $(pig l.pig) ?> ?=(^ l.pig) ?: (vor -.n.pig -.n.l.pig) [n.pig l.pig r.pig] [n.l.pig l.l.pig [n.pig r.l.pig r.pig]] - =+ nex=$(pig r.pig) - =. r.pig nex + =. r.pig $(pig r.pig) ?> ?=(^ r.pig) ?: (vor -.n.pig -.n....
chat: cap maximum backlog size at 1000 Caps maximum unread backlog that chat will fetch at 1000 messages.
@@ -22,6 +22,7 @@ function getNumPending(props) { const ACTIVITY_TIMEOUT = 60000; // a minute const DEFAULT_BACKLOG_SIZE = 300; +const MAX_BACKLOG_SIZE = 1000; function scrollIsAtTop(container) { if ((navigator.userAgent.includes("Safari") && @@ -136,14 +137,15 @@ export class ChatScreen extends Component { const unrea...
set default oversampling to 1.
@@ -101,7 +101,7 @@ int main_moba(int argc, char* argv[argc]) }; float restrict_fov = -1.; - float oversampling = 1.25f; + float oversampling = 1.f; float scale_fB0[2] = { 222., 1. }; // { spatial smoothness, scaling }
Brief documentation added in USERS-GUIDE for No MSD builds support.
@@ -39,3 +39,7 @@ You can debug with any IDE that supports the CMSIS-DAP protocol. Some tools capa ## Firmware update To update the firmware on a device, hold the reset button while attaching USB. The device boots into bootloader mode. From there, copy the appropriate firmware onto the drive. If successful, the device ...
toml: mark unused variable
@@ -54,7 +54,7 @@ static bool isLeapYear (int year); TypeChecker * createTypeChecker (void) { - int result = 0; + int result ELEKTRA_UNUSED = 0; TypeChecker * typeChecker = (TypeChecker *) elektraCalloc (sizeof (TypeChecker)); if (typeChecker == NULL) {
Added comment block indicating where code can be added to get OE info on other platforms
@@ -439,6 +439,10 @@ static void acvp_http_user_agent_handler(ACVP_CTX *ctx, char *agent_string) { acvp_http_user_agent_check_compiler_ver(ctx, comp); #else + /******************************************************* + * Code for getting OE information on platforms that * + * are not Windows, Linux, or Mac OS can be add...
free fix for test_query.c
@@ -104,7 +104,7 @@ query_test(const char * raw_query, int exp_error, struct expected exp[], int fla return -1; } - evhtp_safe_free(evhtp_query_free, query); + evhtp_safe_free(query, evhtp_query_free); return num_errors; } /* query_test */
CMake: rename list
# nor does it submit to any jurisdiction. # -list( APPEND grib_tools_sources +list( APPEND ecc_tools_sources grib_tools.c grib_options.c grib_tools.h ) if( EC_OS_NAME MATCHES "windows" ) - list( APPEND grib_tools_sources wingetopt.c ) + list( APPEND ecc_tools_sources wingetopt.c ) endif() # tools library -ecbuild_add_l...
SOVERSION bump to version 2.19.3
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 19) -set(LIBYANG_MICRO_SOVERSION 2) +set(LIBYANG_MICRO_SOVERSION 3) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M...
sleep_ms should have some surplus as it must not sleep less than the argument
@@ -570,7 +570,8 @@ void mrbc_sleep_ms(mrbc_tcb *tcb, uint32_t ms) tcb->timeslice = 0; tcb->state = TASKSTATE_WAITING; tcb->reason = TASKREASON_SLEEP; - tcb->wakeup_tick = tick_ + (ms / MRBC_TICK_UNIT); + tcb->wakeup_tick = tick_ + (ms / MRBC_TICK_UNIT) + 1; + if( ms % MRBC_TICK_UNIT ) tcb->wakeup_tick++; q_insert_task...
f_ka can also be None
@@ -535,9 +535,9 @@ def halomod_power_spectrum(cosmo, hmc, k, a, prof, elif not isinstance(prof_2pt, Profile2pt): raise TypeError("prof_2pt must be of type " "`Profile2pt` or `None`") - if not hasattr(f_ka, "__call__"): + if f_ka is not None and not hasattr(f_ka, "__call__"): raise TypeError("f_ka must be a function wi...
Stylecheck for plgo/pkg/balancer/
@@ -523,8 +523,6 @@ migrations: - a.yandex-team.ru/strm/gorshok/pkg/server - a.yandex-team.ru/strm/plgo/pkg/algorithm - a.yandex-team.ru/strm/plgo/pkg/algorithm_test - - a.yandex-team.ru/strm/plgo/pkg/balancer - - a.yandex-team.ru/strm/plgo/pkg/balancer_test - a.yandex-team.ru/strm/plgo/pkg/channel - a.yandex-team.ru/s...
Fixed the order in which lowdowns get sent: %tales should always go first.
::x brings reader new up to date. :: |= new/bone - =. +> %- ra-emit + =. +> %- ra-emil :~ :* new %diff %talk-lowdown %tales %- ~(gas in *(map knot (unit config))) %+ turn (~(tap by stories)) |=({a/knot b/story} [a `shape.b]) == - =. +> %- ra-emil :~ [new %diff %talk-lowdown %glyph nak] [new %diff %talk-lowdown %names (...
doc: limit search engines scan on older content Update robots.txt to exclude older documentation versions: 0.? 1.? and 2.0 through 2.4
User-agent: * Allow: / -Disallow: /0.1/ -Disallow: /0.2/ -Disallow: /0.3/ -Disallow: /0.4/ -Disallow: /0.5/ -Disallow: /0.6/ -Disallow: /0.7/ -Disallow: /0.8/ -Disallow: /1.0/ -Disallow: /1.1/ -Disallow: /1.2/ -Disallow: /1.3/ -Disallow: /1.4/ -Disallow: /1.5/ +Disallow: /0.?/ +Disallow: /1.?/ +Disallow: /2.0/ +Disallo...
Add loop termination to TZ grid search Terminates the grid search if no better motion vector was found in the last three iterations.
@@ -634,8 +634,13 @@ static void tz_search(inter_search_info_t *info, vector2d_t extra_mv) vector2d_t start = { info->best_mv.x >> 2, info->best_mv.y >> 2 }; //step 2, grid search + int rounds_without_improvement = 0; for (int iDist = 1; iDist <= iSearchRange; iDist *= 2) { kvz_tz_pattern_search(info, step2_type, iDist...
YIN parser BUGFIX yang-version is not a mandatory statement
@@ -3329,7 +3329,7 @@ yin_parse_mod(struct yin_parser_ctx *ctx, struct yin_arg_record *mod_attrs, cons LY_STMT_RPC, &mod->rpcs, 0, LY_STMT_TYPEDEF, &mod->typedefs, 0, LY_STMT_USES, &mod->data, 0, - LY_STMT_YANG_VERSION, &mod->mod->version, YIN_SUBELEM_MANDATORY | YIN_SUBELEM_UNIQUE, + LY_STMT_YANG_VERSION, &mod->mod->v...
stm32/adc: Use IS_CHANNEL_INTERNAL macro to check for internal channels.
@@ -329,9 +329,7 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel) #elif defined(STM32F4) || defined(STM32F7) sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES; #elif defined(STM32H7) - if (channel == ADC_CHANNEL_VREFINT - || channel == ADC_CHANNEL_TEMPSENSOR - || channel == ADC_CHANNEL_VB...
show a 'verified' status in my-node tab so people know their daemon start worked.
@@ -345,7 +345,11 @@ void FortunastakeManager::updateNodeList() if (mn.IsActive(pindexBest)) { nstatus = QString::fromStdString("Active for payment"); } else if (mn.status == "OK") { + if (mn.lastDseep > 0) { + nstatus = QString::fromStdString("Verified"); + } else { nstatus = QString::fromStdString("Registered"); + } ...
mm/shm: Fix ARCH_SHM_VEND The last address is base+size-1
# define ARCH_SHM_MAXPAGES (CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS) # define ARCH_SHM_REGIONSIZE (CONFIG_ARCH_SHM_NPAGES * CONFIG_MM_PGSIZE) # define ARCH_SHM_SIZE (CONFIG_ARCH_SHM_MAXREGIONS * ARCH_SHM_REGIONSIZE) -# define ARCH_SHM_VEND (CONFIG_ARCH_SHM_VBASE + ARCH_SHM_SIZE) +# define ARCH_SHM_VEND (CON...
VERSION bump to version 0.8.44
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 43) +set(LIBNETCONF2_MICRO_VERSION 44) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
Add doxygen docs for x and y parameters
@@ -72,7 +72,7 @@ extern "C" { * \brief Get minimal value between `x` and `y` inputs * \param[in] x: First input to test * \param[in] y: Second input to test - * \return Minimal value between x and y parameters + * \return Minimal value between `x` and `y` parameters * \hideinitializer */ #define ESP_MIN(x, y) ((x) < (...
Fix perf_submit() calls with array data crashing libbcc A perf_submit() call like: unsigned char buf[16] = ...; output.perf_submit(ctx, buf, sizeof(buf)); Passes a non-pointer arg1, so getPointeeType().getTypePtr() is invalid, and crashes libbcc. Use getTypePtrOrNull() instead to avoid it.
@@ -925,8 +925,8 @@ bool BTypeVisitor::VisitCallExpr(CallExpr *Call) { // events.perf_submit(ctx, &data, sizeof(data)); // ... // &data -> data -> typeof(data) -> data_t - auto type_arg1 = Call->getArg(1)->IgnoreCasts()->getType().getTypePtr()->getPointeeType().getTypePtr(); - if (type_arg1->isStructureType()) { + auto...
nat: fix byte order of vrf_id in logging Type: fix
@@ -658,6 +658,7 @@ nat_ipfix_logging_nat44_ses (u32 thread_index, u8 nat_event, u32 src_ip, clib_memcpy_fast (b0->data + offset, &nat_src_port, sizeof (nat_src_port)); offset += sizeof (nat_src_port); + vrf_id = clib_host_to_net_u32 (vrf_id); clib_memcpy_fast (b0->data + offset, &vrf_id, sizeof (vrf_id)); offset += si...
Update building-with-vcpkg.md Fix usage instructions
@@ -21,7 +21,7 @@ See instructions below to build the SDK with additional Microsoft-proprietary mo ``` cit clone --recurse-submodules https://github.com/microsoft/cpp_client_telemetry cd cpp_client_telemetry -vcpkg install --head --overlay-ports=%CD%\tools\ports +vcpkg install --head --overlay-ports=%CD%\tools\ports ms...
doc: document ignored gcc errors
+## Ignored compiler errors + +### GCC +- Ignoring some "maybe-uninitialized" upstream errors from libstdc++ 12.x.x in commit bd1543a1b98fb988f01bedcc266b35b5c4d6240f + ## disabled tests src/plugins/lua/CMakeLists.txt for APPLE
naive: working spawn tests
|= cur-event=event ^- ? ?+ tx-type.cur-event %.n %transfer-point %.y - %set-transfer-proxy %.y :: TODO: double check this + %set-transfer-proxy %.n == -- :: +star-check ++ planet-check %detach %.n %set-management-proxy %.y %set-spawn-proxy %.n - %set-transfer-proxy %.n + %set-transfer-proxy %.y == ++ managep-check |= c...
[dpos] fix index out of range
@@ -340,6 +340,9 @@ func (bs *bootLoader) load() { if err := bs.loadPLIB(&bs.plib); err == nil { logger.Debug().Int("len", len(bs.plib)).Msg("pre-LIB loaded from DB") for id, p := range bs.plib { + if len(p) == 0 { + continue + } logger.Debug(). Str("BPID", id).Str("block hash", p[len(p)-1].BlockHash). Msg("pre-LIB ent...
Verify that the Record Layer Protocol Major Version is between 2 and 3
@@ -72,6 +72,15 @@ int s2n_record_header_parse(struct s2n_connection *conn, uint8_t * content_type, uint8_t version = (protocol_version[0] * 10) + protocol_version[1]; + uint8_t tls_major_version = protocol_version[0]; + /* TLS servers compliant with this specification MUST accept any value {03,XX} as the record layer ...
Convert our own check of OPENSSL_NO_DEPRECATED ... to the check OPENSSL_API_COMPAT < 0x10100000L, to correspond with how it's declared.
@@ -18,7 +18,7 @@ void ENGINE_load_builtin_engines(void) OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); } -#if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(OPENSSL_NO_DEPRECATED) +#if (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)) && OPENSSL...
Fixed case issue
@@ -12,7 +12,7 @@ namespace Demo { static void Main(string[] args) { - LibSurViveAPI api = LibSurViveAPI.instance; + LibSurViveAPI api = LibSurViveAPI.Instance; var so = api.GetSurviveObjectByName("HMD");
[catboost] Add test for r5029047 Note: mandatory check (NEED_CHECK) was skipped
@@ -4296,6 +4296,17 @@ def test_eval_features(task_type, eval_type, problem): return canonical_files +def test_metric_period_with_vertbose_true(): + pool = Pool(TRAIN_FILE, column_description=CD_FILE) + model = CatBoost(dict(iterations=16, metric_period=4)) + + tmpfile = test_output_path('tmpfile') + with LogStdout(ope...
[Fix] shiftmask calculation
@@ -491,7 +491,7 @@ void Robus_ShiftMaskCalculation(uint16_t ID, uint16_t ServiceNumber) // Shift byte byte Mask of bit address uint16_t tempo = 0; - ctx.ShiftMask = ID / 8; // aligned to byte + ctx.ShiftMask = (ID - 1) / 8; // aligned to byte // create a mask of bit corresponding to ID number in the node for (uint16_t...
Update CMakeLists.txt Fix definitions for rk3326
@@ -51,8 +51,8 @@ endif() if(RK3326) add_definitions(-DRK3326) - add_definitions(-marm -mcpu=cortex-a35 -mfpu=neon-vfpv3 -march=armv8-a+crc+simd+crypto -mfloat-abi=hard) - set(CMAKE_ASM_FLAGS "-marm -mcpu=cortex-a35 -mfpu=neon-vfpv3 -march=armv8-a+crc+simd+crypto -mfloat-abi=hard") + add_definitions(-pipe -march=armv8-...
tests: replace orphaned variable subs.
@@ -35,25 +35,25 @@ if(OPAE_ENABLE_MOCK) add_custom_command(TARGET fpga_db POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/framework/mock_sys_tmp-1socket-nlb0.tar.gz + ${CMAKE_CURRENT_SOURCE_DIR}/mock_sys_tmp-1socket-nlb0.tar.gz ${CMAKE_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy - ${OPAE_TEST_ROOT}/fr...
sse: _mm_extract_epi64 and _mm_insert_epi64 require amd64
@@ -627,7 +627,7 @@ int64_t simde_mm_extract_epi64 (simde__m128i a, const int imm8) { return a.i64[imm8&1]; } -#if defined(SIMDE_SSE4_1_NATIVE) +#if defined(SIMDE_SSE4_1_NATIVE) && defined(SIMDE_ARCH_AMD64) # define simde_mm_extract_epi64(a, imm8) _mm_extract_epi64(a.n, imm8) #elif defined(SIMDE_SSE4_1_NEON) # define s...
English fixes for Options.md
@@ -80,16 +80,16 @@ dynamically modifying classes or reloading classes then don't use this. ### :create_additions -A flag indicating the :create_id key when encountered during parsing should -creating an Object mactching the class name specified in the value associated -with the key. +A flag indicating that the :create...
when we removed InitConfig globally forgot to add back to run
@@ -24,6 +24,7 @@ scope run --payloads -- nc -lp 10001 scope run -- curl https://wttr.in/94105`, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { + internal.InitConfig() rc.Run(args) }, }
Ensure NEON dot3() returns clear lane 3
@@ -942,8 +942,12 @@ ASTCENC_SIMD_INLINE float dot_s(vfloat4 a, vfloat4 b) */ ASTCENC_SIMD_INLINE vfloat4 dot3(vfloat4 a, vfloat4 b) { + // Clear lane to zero to ensure it's not in the dot() a.set_lane<3>(0.0f); - return vfloat4(vaddvq_f32(vmulq_f32(a.m, b.m))); + a = vfloat4(vaddvq_f32(vmulq_f32(a.m, b.m))); + // Clea...
kdf: use the app's libctx and property query when searching for algorithms
@@ -138,7 +138,8 @@ opthelp: if (argc != 1) goto opthelp; - if ((kdf = EVP_KDF_fetch(NULL, argv[0], NULL)) == NULL) { + if ((kdf = EVP_KDF_fetch(app_get0_libctx(), argv[0], + app_get0_propq())) == NULL) { BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]); goto opthelp; }
[chainmaker][#981]Modify Txtype comment
@@ -39,7 +39,10 @@ boatchainamaker.h is header file for RAW transaction construction and performing * chainmaker contract_name * * @param tx_type - * chainmaker user system invoke and query + * chainmaker + * TXTYPE_INVOKE_USER_CONTRACT invoke user contract + * TXTYPE_QUERY_USER_CONTRACT query user contarct + * TxType_...
make _is_indexed() more obvious and less cute
@@ -1736,16 +1736,16 @@ _is_indexed(c3_w op) // NOTE: this logic is copied from ___ // and must be changed here if that changes. switch (op) { - case FIBK: case FIBK+1: - case FIBL: case FIBL+1: - case LIBK: case LIBK+1: - case LIBL: case LIBL+1: - case BUSH: case BUSH+1: - case SANB: case SANB+1: - case KITB: case KIT...
Compile: Fix list syntax Before this update some Markdown tools such as [Marked][] would not display the list of recommended plugins correctly. [Marked]:
@@ -165,6 +165,7 @@ the configuration files are named) and also do many other tasks related to configuration. The minimal set of plugins you should add: + - [dump](/src/plugins/dump) is the default storage. If you remove it, make sure you add another one and set `KDB_DEFAULT_STORAGE` to it.
Rename main_loop_async debug messages
@@ -468,11 +468,14 @@ void main_loop_fake_crypto(LCPARAMS){ } } -uint64_t timer1 = 0; +uint64_t main_loop_async_work_timer = 0; +uint64_t main_loop_async_tick_timer = 0; void main_loop_async(LCPARAMS) { - //debug("---------------- main loop async cotext_buffer:%d async_size:%d, pending: %d\n",rte_ring_count(context_buf...
Do not use packed SIMD instructions for only one argument
.globl math$_trunc32 math$trunc32: math$_trunc32: - roundps $0x03, %xmm0, %xmm0 + roundss $0x03, %xmm0, %xmm0 ret .globl math$floor32 .globl math$_floor32 math$floor32: math$_floor32: - roundps $0x01, %xmm0, %xmm0 + roundss $0x01, %xmm0, %xmm0 ret .globl math$ceil32 .globl math$_ceil32 math$ceil32: math$_ceil32: - roun...
Order the file names
* * Module: library/bignum.c * library/bignum_core.c - * library/bignum_mod_raw.c * library/bignum_mod.c + * library/bignum_mod_raw.c * Caller: library/dhm.c * library/ecp.c * library/ecdsa.c
porting: Fix typos in controller makefile
@@ -25,8 +25,8 @@ NIMBLE_INCLUDE += \ $(NULL) NIMBLE_SRC += \ - $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT/nimble/transport/ram/src/*.c)) \ - $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT/nimble/controller/src/*.c)) \ - $(filter-out $(NIMBLE_IGNORE), $(wildcard $(NIMBLE_ROOT/nimble/drivers/nrf52/...
64 bit nightly builds;
@@ -16,7 +16,7 @@ before_build: - git submodule update --init - md build - cd build - - cmake -DCMAKE_BUILD_TYPE=%configuration% .. + - cmake -DCMAKE_BUILD_TYPE=%configuration% -A x64 .. configuration: Release
testing/irtest: Fix issue of failure to open multiple IR devices
@@ -189,12 +189,14 @@ CMD1(open_device, const char *, file_name) } int index = 0; - for (; index < CONFIG_TESTING_IRTEST_MAX_NIRDEV && - g_irdevs[index] == -1; index++) + for (; index < CONFIG_TESTING_IRTEST_MAX_NIRDEV; index++) + { + if (g_irdevs[index] == -1) { g_irdevs[index] = irdev; break; } + } if (index == CONFI...
capabilities: fix static asserts after merge
@@ -519,7 +519,6 @@ static size_t caps_max_numobjs(enum objtype type, gensize_t srcsize, gensize_t o * For the meaning of the parameters, see the 'caps_create' function. */ STATIC_ASSERT(68 == ObjType_Num, "Knowledge of all cap types"); - static errval_t caps_zero_objects(enum objtype type, lpaddr_t lpaddr, gensize_t o...
separates effects and persistence and always apply effects, even if the state didn't change
@@ -1456,6 +1456,9 @@ _raft_sure(u3_noun ovo, u3_noun vir, u3_noun cor) u3r_mug(cor); u3r_mug(u3A->roc); + // XX review this, and confirm it's actually an optimization + // Seems like it could be very expensive in some cases + // if ( c3n == u3r_sing(cor, u3A->roc) ) { ret = u3nc(vir, ovo); @@ -1465,7 +1468,8 @@ _raft_...