message
stringlengths
6
474
diff
stringlengths
8
5.22k
fixed all bugs but yuuitora gonna fine another
@@ -83,17 +83,7 @@ for x in range(len(my_info)): start_index = int(my_info[x].time/1000 * rate) - - if x < len(beatmap_info) and "circle" in beatmap_info[x]["type"]: - if my_info[x].hitresult == None: - continue - elif my_info[x].hitresult == 0: - z[start_index:start_index + len(m)] += m * 0.5 - - elif my_info[x].hitre...
render camera projection
public struct Camera { [FieldOffset(0x00)] public ReferencedClassBase ReferencedClassBase; + + [FieldOffset(0x50)] public Matrix44 ProjectionMatrix; + [FieldOffset(0xA4)] public float FoV; + [FieldOffset(0xA8)] public float AspectRatio; + [FieldOffset(0xAC)] public float NearPlane; + [FieldOffset(0xB0)] public float Fa...
Add missing settings from previous commit
@@ -165,6 +165,9 @@ VOID PhAddDefaultSettings( PhpAddIntegerSetting(L"TokenSplitterPosition", L"150"); PhpAddStringSetting(L"TokenPrivilegesListViewColumns", L""); PhpAddIntegerSetting(L"TreeListBorderEnable", L"0"); + PhpAddIntegerSetting(L"TreeListCustomColorsEnable", L"0"); + PhpAddIntegerSetting(L"TreeListCustomCol...
VERSION bump to version 1.3.62
@@ -31,7 +31,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 61) +set(SYSREPO_MICRO_VERSION 62) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Including the internal test versions....
@@ -926,7 +926,9 @@ uint16_t picoquic_tls_get_quic_extension_id(picoquic_cnx_t* cnx) v == PICOQUIC_NINETEENTH_INTEROP_VERSION || v == PICOQUIC_NINETEENTH_BIS_INTEROP_VERSION || v == PICOQUIC_TWENTIETH_PRE_INTEROP_VERSION || - v == PICOQUIC_TWENTIETH_INTEROP_VERSION) { + v == PICOQUIC_TWENTIETH_INTEROP_VERSION || + v ==...
configure style fix: animdiff -> anim_diff
@@ -590,7 +590,7 @@ AS_IF([test "x$enable_gif" != "xno"], [ if test "$gif_support" = "yes" -a \ "$enable_libwebpdemux" = "yes"; then - build_animdiff=yes + build_anim_diff=yes fi if test "$gif_support" = "yes" -a \ @@ -598,7 +598,7 @@ AS_IF([test "x$enable_gif" != "xno"], [ build_gif2webp=yes fi ]) -AM_CONDITIONAL([BUI...
Clarify import docs for dynamic bindings.
use the name of the module as a prefix. One can also use :export true to re-export the imported symbols. If :exit true is given as an argument, any errors encountered at the top level in the module will cause (os/exit 1) - to be called." + to be called. Dynamic bindings will NOT be imported." [path & args] (def argm (m...
Improve collision management
@@ -157,14 +157,16 @@ void Recep_GetData(volatile unsigned char *data) ******************************************************************************/ void Recep_GetCollision(volatile unsigned char *data) { + // send all received datas + Recep_GetHeader(data); if ((*ctx.tx_data != *data) || (!ctx.tx_lock)) { //data don...
Enable light node bindings for Feibit devices
@@ -2256,6 +2256,9 @@ void DeRestPluginPrivate::checkLightBindingsForAttributeReporting(LightNode *lig else if (lightNode->manufacturer().startsWith(QLatin1String("ROBB smarrt"))) { } + else if (lightNode->manufacturer().startsWith(QLatin1String("Feibit"))) + { + } else if (lightNode->manufacturer() == QLatin1String("s...
Update build_wheels.yml Don't try any build musl Linux - can't find libusb
@@ -58,7 +58,7 @@ jobs: env: CIBW_MANYLINUX_X86_64_IMAGE: libsurvive_manylinux2014_x86_64 CIBW_MANYLINUX_AARCH64_IMAGE: libsurvive_manylinux2014_aarch64 - CIBW_BUILD: cp3*manylinux_x86_64 cp3*aarch64* + CIBW_BUILD: cp3*manylinux_x86_64 cp3*manylinux_aarch64* CIBW_SKIP: cp35* CIBW_ARCHS_LINUX: x86_64 i686 aarch64
Check Bashisms: Ignore `sed` script
@@ -11,7 +11,7 @@ cd "@CMAKE_SOURCE_DIR@" # this way we also check subdirectories # The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature! # See also: https://unix.stackexchange.com/questions/151925 -scripts=$(find -E scripts/ -type f -not -regex '.+(check-env-dep|kdb_zsh_complet...
Fix a integer overflow reported by Felix Weinrank.
#ifdef __FreeBSD__ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 323372 2017-09-09 19:49:50Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 323774 2017-09-19 20:09:58Z tuexen $"); #endif #include <netinet/sctp_os.h> @@ -2681,9 +2681,6 @@ sctp_handle_cookie_echo(struct mbuf *m...
Fix grid_second_order_boustrophedonic
@@ -419,8 +419,8 @@ static int process_packingType_change(grib_handle* h, const char* keyname, const if (h->context->debug) { fprintf(stderr, "ECCODES DEBUG grib_set_string packingType: " "Constant field cannot be encoded in second order. Packing not changed\n"); - return 1; /* Dealt with - no further action needed */ ...
Adapt generate_key() test code to mbedTLS standards
*/ /* BEGIN_CASE */ -void generate_key( int key_type, int bits, int result) +void generate_key( int key_type_arg, int bits_arg, int expected_status_arg) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; mbedtls_svc_key_id_t key_id = INVALID_KEY_ID; // key lifetiem, usage flags, algorithm are irrelevant for t...
board/gelarshie/board.h: Format with clang-format BRANCH=none TEST=none
@@ -103,10 +103,7 @@ enum sensor_id { SENSOR_COUNT, }; -enum pwm_channel { - PWM_CH_DISPLIGHT = 0, - PWM_CH_COUNT -}; +enum pwm_channel { PWM_CH_DISPLIGHT = 0, PWM_CH_COUNT }; /* List of possible batteries */ enum battery_type {
recv callback expects 4 arguments
@@ -210,7 +210,7 @@ static void luv_udp_recv_cb(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf // err if (nread < 0) { - luv_status(L, nread); + luv_status(L, nread); // TODO: I think luv_push_status_nil(L, nread) would be better name => remove branching } else { lua_pushnil(L); @@ -228,6 +228,9 @@ static void lu...
restore find tool usage in async branch
@@ -336,7 +336,7 @@ find_tool() { exit_on_error "Cannot not find $(cc 2)$tool$nn tool" } -PYTHON3='python3' +PYTHON3=${PYTHON3-$(find_tool "." python3)} # note: it is used with sudo MESON_CMD="$PYTHON3 -m mesonbuild.mesonmain"
Fix up so code so it builds if enabled
@@ -10,7 +10,7 @@ static inline uint32_t SHA1Rotate(uint32_t value, uint32_t bits) return ((value) << bits) | (value >> (32 - bits)); } -void HashBlock(const uint8_t* block, HashStateImpl* state) +void HashBlock(const uint8_t* block, HashStateImpl* state, void* debug_file_) { uint32_t w[80];
sys/log/modlog; count filtered messages in log statistics.
@@ -227,6 +227,9 @@ modlog_append_one(struct modlog_mapping *mm, uint8_t module, uint8_t level, if (rc != 0) { return SYS_EIO; } + } else { + LOG_STATS_INC(mm->desc.log, writes); + LOG_STATS_INC(mm->desc.log, drops); } return 0; @@ -282,6 +285,9 @@ modlog_append_mbuf_one(struct modlog_mapping *mm, uint8_t module, if (r...
possible fix for locked normals failing to be transformed. O
@@ -322,8 +322,7 @@ InputMesh::processNormals( // build the per-vertex normals std::vector<int> lockedNormals(normalIds.length()); - std::vector<float> vertexNormals; - vertexNormals.reserve(normalIds.length() * 3); + std::vector<float> vertexNormals(normalIds.length() * 3); for(unsigned int i = 0; i < normalIds.length...
linux-raspberrypi_4.4: Update to 4.4.48
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.4.43" +LINUX_VERSION ?= "4.4.48" -SRCREV = "17ca1c930978a9ea6ddfec61fd0e2043e8ab3b17" +SRCREV = "7ddf96fbb7d637b79b449c7bd1c8d35f00571e4b" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \ file://0001-fix-dtbo-rule...
Expose reuseaddr status in upnpconfig.h I missed this as part of the inital PR. Useful for consumers to be able to test fot the behaviour change at build time. Also unifies the spacing between items to a single newline.
* (i.e. configure --enable-debug) : <upnp/upnpdebug.h> file is available */ #undef UPNP_HAVE_DEBUG - /** Defined to 1 if the library has been compiled with client API enabled * (i.e. configure --enable-client) */ #undef UPNP_HAVE_CLIENT - /** Defined to 1 if the library has been compiled with device API enabled * (i.e....
common/files: fixes for Linux use of memfd
#include <sys/mman.h> #include <sys/socket.h> #include <sys/stat.h> +#include <sys/syscall.h> #include <sys/types.h> #include <unistd.h> -#if defined(_HF_ARCH_LINUX) -#include <sys/syscall.h> -#if defined(__NR_memfd_create) -#include <linux/memfd.h> -#endif /* defined(__NR_memfd_create) */ -#endif /* defined(_HF_ARCH_L...
SCCT: Fix another misaligned text for italian ver Fixed another misaligned text in the last level for the Italian version of the game
@@ -417,7 +417,7 @@ void Init() case GameLang::Italian: sTextOffset.bottomCorner.v1v1 -= 7; sTextOffset.objPopup.v2v2 += 5; - sTextOffset.topCorner.v2v2 += 3; + sTextOffset.topCorner.v2v2 += 4; break; case GameLang::Polish: sTextOffset.bottomCorner.v1v1 -= 10;
Uncommented segmentation fault of ruby loader from node loader, the previous commit related to threading model has solved it.
@@ -395,6 +395,8 @@ function_return function_rb_interface_invoke(function func, function_impl impl, const char * v_type_name = rb_type_deserialize(result_value, &v); + (void)v_type_name; /* Unused */ + return v; } @@ -1232,8 +1234,7 @@ int rb_loader_impl_clear_cb_iterate(set s, set_key key, set_value val, set_cb_it (vo...
Performed check for max region count
@@ -3911,6 +3911,15 @@ GetRegions( NVDIMM_ENTRY(); + //This would be just MAX_REGIONS, except there is some HII constraint + //making that figure artificially low. Will update when resolved. + if (Count > MAX_SOCKETS * MAX_REGIONS_PER_SOCKET) { + Rc = EFI_INVALID_PARAMETER; + ResetCmdStatus(pCommandStatus, NVM_ERR_INVA...
enable mining of benchmarks for go tests
@@ -335,7 +335,7 @@ def gen_test_main(args, test_lib_args, xtest_lib_args): if test_lib_args: os.makedirs(os.path.join(test_src_dir, test_module_path)) os_symlink(test_lib_args.output, os.path.join(test_pkg_dir, os.path.basename(test_module_path) + '.a')) - cmd = [test_miner, '-tests', test_module_path] + cmd = [test_m...
VirtualScroller: hotfix crash Fixes urbit/landscape#506
@@ -168,7 +168,7 @@ export default class VirtualScroller<T> extends Component<VirtualScrollerProps<T } startOffset() { - const startIndex = this.state.visibleItems.peekLargest()?.[0]; + const startIndex = this.state?.visibleItems?.peekLargest()?.[0]; if(!startIndex) { return 0; } @@ -458,7 +458,7 @@ export default clas...
onOverlayOpen/Close should not have access to ImGui (oversight)
@@ -264,12 +264,16 @@ void ScriptContext::TriggerOnDraw() const void ScriptContext::TriggerOnOverlayOpen() const { - TryLuaFunctionWithImGui(m_sandbox, m_sandboxID, m_logger, m_onOverlayOpen); + auto state = m_sandbox.GetState(); + + TryLuaFunction(m_logger, m_onOverlayOpen); } void ScriptContext::TriggerOnOverlayClose...
linux-raspberrypi.inc: Explicitly set defconfig for raspberrypi4-64
@@ -20,6 +20,7 @@ KBUILD_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" KBUILD_DEFCONFIG_raspberrypi3 ?= "bcm2709_defconfig" KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" KBUILD_DEFCONFIG_raspberrypi4 ?= "bcm2711_defconfig" +KBUILD_DEFCONFIG_raspberrypi4-64 ?= "bcm2711_defconfig" # CMDLINE for raspberrypi SERI...
cirrus: use Python 3.9
@@ -178,8 +178,8 @@ mac_task: echo $DBUS_LAUNCHD_SESSION_BUS_SOCKET launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET - | # Install Python - brew install python@3.8 || brew upgrade python@3.8 - export PATH="/usr/local/opt/python@3.8/bin:$PATH" + brew install python@3.9 || brew upgrade python@3.9 + export PATH="/usr/loca...
Add sceClibStrchr prototype
@@ -48,6 +48,7 @@ int sceClibVsnprintf(char *dst, SceSize dst_max_size, const char *fmt, va_list a char *sceClibStrncpy(char *dst, const char *src, SceSize len); char *sceClibStrncat(char *dst, const char *src, SceSize len); +char *sceClibStrchr(const char *s, int ch); char *sceClibStrrchr(const char *src, int ch); cha...
h2olog/quic: fix incorrect event label
@@ -391,7 +391,7 @@ int trace_streams_blocked_send(struct pt_regs *ctx) { void *pos = NULL; struct quic_event_t event = {}; struct st_quicly_conn_t conn = {}; - sprintf(event.type, "handshake_done_send"); + sprintf(event.type, "streams_blocked_send"); bpf_usdt_readarg(1, ctx, &pos); bpf_probe_read(&conn, sizeof(conn), ...
fix moving clients between monitors
@@ -154,15 +154,14 @@ monocle(Monitor *m) if (n > 0) /* override layout symbol */ snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%1u]", n); for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) { - if (animated && c == selmon->sel) + if (animated && c == selmon->sel) { + animateclient(c, m->wx, m->wy, m->ww - 2 * c->...
Remove string terminator from length when calling copyString
@@ -968,7 +968,7 @@ static Value strNative(int argCount, Value *args) { char *numberString = malloc(sizeof(char) * numberStringLength); snprintf(numberString, numberStringLength, "%.15g", number); - ObjString *string = copyString(numberString, numberStringLength); + ObjString *string = copyString(numberString, numberSt...
Document the history of BIO_gets() on BIO_fd().
@@ -80,6 +80,11 @@ to the chain. L<BIO_should_retry(3)> +=head1 HISTORY + +BIO_gets() on 1.1.0 and older when called on BIO_fd() based BIO does not +keep the '\n' at the end of the line in the buffer. + =head1 COPYRIGHT Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
Fix bundle allocation;
@@ -1856,7 +1856,6 @@ static uint32_t getLayout(gpu_slot* slots, uint32_t count) { return index; } - static gpu_bundle* getBundle(uint32_t layoutIndex) { Layout* layout = &state.layouts.data[layoutIndex]; BundlePool* pool = layout->head; @@ -1888,7 +1887,7 @@ static gpu_bundle* getBundle(uint32_t layoutIndex) { lovrAss...
Restructure sound_samples.c
@@ -23,33 +23,6 @@ struct Sound_samples int paused; }; -static int init_buffer_and_device(Sound_samples*, const char **); -Sound_samples *create_sound_samples(const char *sample_files[], - size_t sample_files_count) -{ - trace_assert(sample_files); - trace_assert(sample_files_count > 0); - - Lt *lt = create_lt(); - - S...
Fix destinationLen computing
@@ -47,7 +47,8 @@ static int check_deposit_contract(ethPluginInitContract_t *msg) { &global_sha3, chainConfig); - uint8_t destinationLen = strlen(destinationAddress); + uint8_t destinationLen = strlen(destinationAddress) + 1; // Adding one to account for \0. + // Ensure address is in lowercase, to match DEPOSIT_CONTRAC...
[core] cold h2_log_response_header*() funcs
@@ -1550,6 +1550,26 @@ h2_send_hpack (request_st * const r, connection * const con, const char *data, u } +__attribute_cold__ +static void +h2_log_response_header_lsx(request_st * const r, const lsxpack_header_t * const lsx) +{ + log_error(r->conf.errh, __FILE__, __LINE__, + "fd:%d id:%u resp: %.*s: %.*s", r->con->fd, ...
Allow any FQDN for the hostname.
@@ -1215,12 +1215,12 @@ test_api(pappl_system_t *system) // I - System fputs("api: papplSystemGetHostname: ", stdout); if (!papplSystemGetHostname(system, get_str, sizeof(get_str))) { - fputs("FAIL (got NULL, expected '*.local')\n", stdout); + fputs("FAIL (got NULL, expected '*.domain')\n", stdout); pass = false; } - e...
DM USB: xHCI: refine the PLC bit emulation logic during S3 According to xHCI 5.4.8, the Port Link State Change (PLC) bit should not be set to 1 during suspend process. This patch is used to fix it. Acked-by: Yu Wang
@@ -1262,8 +1262,15 @@ pci_xhci_portregs_write(struct pci_xhci_vdev *xdev, case 3: /* U3 */ if (oldpls != newpls) { p->portsc &= ~XHCI_PS_PLS_MASK; - p->portsc |= XHCI_PS_PLS_SET(newpls) | - XHCI_PS_PLC; + p->portsc |= XHCI_PS_PLS_SET(newpls); + + /* + * TODO: + * Should check if this is exactly + * consistent with xHC...
doc: add link to configurator debian package in tag assets
@@ -53,8 +53,9 @@ Redesigned ACRN Configuration the `ACRN users mailing list <https://lists.projectacrn.org/g/acrn-users>`_. We've also simplified installation of the Configurator by providing a Debian - package that you can download and install. See the :ref:`gsg` for more - information. + package that you can downloa...
Work CD-CI Add auto cancel config to PRs. ***NO_CI***
@@ -4,7 +4,8 @@ trigger: paths: exclude: [ "doc", "*.md", ".gitignore", "README.md" ] -# no pr config, we want to trigger builds for all PRs on all branches +pr: + autoCancel: true # add nf-tools repo to resources (for Azure Pipelines templates) resources:
fixes for genders build on rhel8/leap15; update python dependency and call out byacc for rhel
@@ -24,8 +24,13 @@ Requires: perl BuildRequires: gcc-c++ BuildRequires: bison flex BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: python -BuildRequires: python-devel +BuildRequires: python2 +BuildRequires: python2-devel + +%if 0%{?rhel_version} +BuildRequires: byacc +%endif + Provides: %{pname} = %{version} %...
add a fast path to avoid unnecessary allocation and copy
@@ -245,7 +245,10 @@ static void build_request(h2o_req_t *req, h2o_iovec_t *method, h2o_url_t *url, h } } - if (cookie_values.size != 0) { + if (cookie_values.size == 1) { + /* fast path */ + h2o_add_header(&req->pool, headers, H2O_TOKEN_COOKIE, NULL, cookie_values.entries[0].base, cookie_values.entries[0].len); + } el...
moved more functions from threads to packet processing loop
@@ -2244,13 +2244,16 @@ while(1) if(digitalRead(7) == 1) { digitalWrite(0, HIGH); - globalclose(); + wantstopflag = true; } + if(wantstopflag == false) + { digitalWrite(0, HIGH); delay (25); digitalWrite(0, LOW); delay (25); } + } return NULL; } #endif
[persistence] fix the size of nbytes.
@@ -166,7 +166,7 @@ typedef struct _IT_setattr_log { /* Snapshot Element Log Record */ typedef struct _snapshot_elem_data { - uint16_t nbytes; + uint32_t nbytes; uint8_t nekey; /* nbkey(btree), nfield(map) */ uint8_t neflag; /* neflag(btree) */ char data[1];
gpaddmirrors: add multi-host tablespace test
@@ -58,6 +58,7 @@ Feature: Tests for gpaddmirrors And the user runs "gpstop -aqM fast" @concourse_cluster + Scenario: gpaddmirrors with a default master data directory Given a working directory of the test as '/tmp/gpaddmirrors' And the database is killed on hosts "mdw,sdw1" @@ -103,9 +104,26 @@ Feature: Tests for gpad...
MQTT: print deprecation message regardless of autoreconnect value
@@ -1328,10 +1328,8 @@ static int mqtt_socket_connect( lua_State* L ) if ( (stack<=top) && lua_isnumber(L, stack) ) { + platform_print_deprecation_note("autoreconnect is deprecated", "in the next version"); auto_reconnect = lua_tointeger(L, stack); - if ( auto_reconnect == RECONNECT_POSSIBLE ) { - platform_print_deprec...
nrf52 spi; at hal_spi_init(), disable the port first, in case it was enabled by bootloader.
@@ -649,6 +649,8 @@ hal_spi_init(int spi_num, void *cfg, uint8_t spi_type) goto err; } + hal_spi_disable(spi_num); + if (spi_type == HAL_SPI_TYPE_MASTER) { rc = hal_spi_init_master(spi, (struct nrf52_hal_spi_cfg *)cfg, irq_handler);
doc: add v2.1 to doc version menu
@@ -189,14 +189,12 @@ else: html_context = { 'current_version': current_version, 'versions': ( ("latest", "/latest/"), + ("2.1", "/2.1/"), ("2.0", "/2.0/"), ("1.6.1", "/1.6.1/"), ("1.6", "/1.6/"), ("1.5", "/1.5/"), ("1.4", "/1.4/"), - ("1.3", "/1.3/"), - ("1.2", "/1.2/"), - ("1.1", "/1.1/"), ("1.0", "/1.0/"), # keep 1....
Update copy-dlls.bat.
:: Script to copy dependent DLLs to the named build directory -copy packages\libcups2_native.redist.2.4.0.1\build\native\bin\x64\Debug\*.dll %1 +copy packages\libcups2_native.redist.2.4.0.2\build\native\bin\x64\Debug\*.dll %1 copy packages\libjpeg-turbo-v142.2.0.4.3\build\native\bin\x64\v142\Debug\*.dll %1 copy package...
button: fix compile error when CONFIG_LED_COMMON not defined Compiler complains about debug_mode_blink_led defined but not used. Fix this. TEST=make BRANCH=None Commit-Ready: Ting Shen Tested-by: Ting Shen
@@ -471,11 +471,13 @@ static int debug_button_pressed(int mask) return debug_button_mask() == mask; } +#ifdef CONFIG_LED_COMMON static int debug_mode_blink_led(void) { return ((curr_debug_state != STATE_DEBUG_NONE) && (curr_debug_state != STATE_DEBUG_CHECK)); } +#endif static void debug_mode_transition(enum debug_state...
adc_nrf52: Fix buffer size when initializing buffers.
@@ -449,6 +449,7 @@ nrf52_adc_sample(struct adc_dev *dev) int cnum; int cnum_last = 0; int used_chans = 0; + int size; if (nrf_saadc_busy_check(NRF_SAADC)) { return OS_EBUSY; @@ -478,8 +479,8 @@ nrf52_adc_sample(struct adc_dev *dev) } nrf_saadc_resolution_set(NRF_SAADC, g_drv_instance.resolution); - nrf_saadc_buffer_in...
Fix doc/note/tokens.md bit assignment chart
@@ -45,13 +45,13 @@ contains the next token. The final token in a token chain, including stand-alone tokens, will have the `continued` bit set to zero. ``` -+-----+-------------+-------+---------------+-----+-----------+ -| 1 | 21 | 3 | 22 | 1 | 16 | -+-----+-------------+-------+---------------+-----+-----------+ -[.....
Fix equidistant_knot_seq
@@ -1747,8 +1747,8 @@ ts_bspline_uniform_knot_seq(const tsBSpline *spline, knots[i] *= (tsReal) i / (num - 1); knots[i] += min; } - /* Set knots[0] after knots[num - 1] to ensure that - knots[0] = min if num is 1. */ + /* Set `knots[0]` after `knots[num - 1]` to ensure + that `knots[0] = min` if `num` is `1'. */ knots[...
util/ecst: Fail on partial reads Found-by: Coverity Scan Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi
@@ -1872,9 +1872,9 @@ int calc_header_crc_bin(unsigned int *p_cksum) /* Go thru the BIN File and calculate the Checksum */ fseek(g_hfd_pointer, 0x00000000, SEEK_SET); if (fread(g_header_array, - 1, HEADER_SIZE, - g_hfd_pointer) == 0) + 1, + g_hfd_pointer) != 1) return 0; for (i = 0; i < (HEADER_SIZE - HEADER_CRC_FIELDS...
[numerics] Add option to run ADDM: gfc3d_TEST_ADMM_COLLECTION_FCLIB_PA.
@@ -276,6 +276,12 @@ if(WITH_TESTING) EXTRA_SOURCES data_collection_gfc3d_3.c test_admm_gfc3d_1.c DEPS FCLIB::fclib HDF5 ON ) + new_tests_collection( + DRIVER gfc3d_test_collection.c.in FORMULATION gfc3d COLLECTION TEST_ADMM_COLLECTION_FCLIB_PA + EXTRA_SOURCES data_collection_gfc3d_fclib.c test_admm_gfc3d_1.c DEPS FCLI...
Deinit DCMI on sensor shutdown.
@@ -546,16 +546,28 @@ int sensor_sleep(int enable) int sensor_shutdown(int enable) { + int ret = 0; dcmi_abort(); if (enable) { + if (sensor.pwdn_pol == ACTIVE_HIGH) { DCMI_PWDN_HIGH(); } else { DCMI_PWDN_LOW(); } + HAL_NVIC_DisableIRQ(DCMI_IRQn); + HAL_DCMI_DeInit(&DCMIHandle); + } else { + if (sensor.pwdn_pol == ACTI...
rms/slurm: typo
@@ -81,7 +81,7 @@ BuildRequires: python BuildRequires: readline-devel Obsoletes: slurm-lua%{PROJ_DELIM} slurm-munge%{PROJ_DELIM} slurm-plugins%{PROJ_DELIM} -+# 8/15/14 karl.w.schulz@intel.com - include prereq +# 8/15/14 karl.w.schulz@intel.com - include prereq %if 0%{?suse_version} PreReq: %{insserv_prereq} %{fillup_pr...
esp32/README: Add info about pyparsing and the correct Python version. See issue
@@ -48,12 +48,12 @@ If you use WSL then follow the [Linux guidelines](https://esp-idf.readthedocs.io/en/latest/get-started/linux-setup.html) for the ESP-IDF instead of the Windows ones. -The Espressif ESP-IDF instructions above only install pyserial for Python 2, -so if you're running Python 3 or a non-system Python yo...
Add a test case for external entity parser allocation failures.
@@ -1627,6 +1627,71 @@ START_TEST(test_alloc_create_parser) } END_TEST +static int XMLCALL +external_entity_duff_loader(XML_Parser parser, + const XML_Char *context, + const XML_Char *UNUSED_P(base), + const XML_Char *UNUSED_P(systemId), + const XML_Char *UNUSED_P(publicId)) +{ + char *text = (char *)XML_GetUserData(pa...
options/ansi: Handle non-C locales
@@ -49,7 +49,10 @@ frg::optional<__Mlibc_LocaleDesc> __mlibc_queryLocale(const char *locale) { return __mlibc_queryLocale("C"); // for now we only support the C locale - __ensure(!strcmp(locale, "C")); + if(strcmp(locale, "C")) { + mlibc::infoLogger() << "mlibc: Locale " << locale << " is not supported" << frg::endlog;...
[doc] Added --reset option for st-flash (Closes
@@ -8,6 +8,7 @@ stlink Tools Tutorial | --flash=n[k][m] | st-flash | One can specify `--flash=128k` for example, to override the default value of 64k<br />for the STM32F103C8T6 to assume 128k of flash being present. This option accepts<br />decimal (128k), octal 0200k, or hex 0x80k values. Leaving the multiplier out is...
driver/accelgyro_lsm6dsm.h: Format with clang-format BRANCH=none TEST=none
#define LSM6DSM_FIFO_CTRL1_ADDR 0x06 /* Output data rate registers and masks */ -#define LSM6DSM_ODR_REG(_sensor) \ - (LSM6DSM_CTRL1_ADDR + _sensor) +#define LSM6DSM_ODR_REG(_sensor) (LSM6DSM_CTRL1_ADDR + _sensor) #define LSM6DSM_ODR_MASK 0xf0 #define LSM6DSM_FIFO_CTRL2_ADDR 0x07 #define LSM6DSM_FIFO_CTRL5_ADDR 0x0a #d...
overlay.cpp: fixed renamed check metrics function
@@ -733,7 +733,7 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para const std::string device_path = path + "/device"; const std::string gpu_metrics_path = device_path + "/gpu_metrics"; - if (amdgpu_check_metrics(gpu_metrics_path)) { + if (amdgpu_verify_metrics(gpu_metrics_path)) { gpu_m...
Update nogame;
@@ -50,8 +50,14 @@ local function nogame() if lovr.headset then for i, hand in ipairs(lovr.headset.getHands()) do - models[hand] = models[hand] or lovr.headset.newModel(hand) + models[hand] = models[hand] or lovr.headset.newModel(hand, { animated = true }) if models[hand] then + if lovr.headset.animate(hand, models[han...
graph-store: fixed nested node scry
=/ =ship (slav %p i.t.t.path) =/ =term i.t.t.t.path =/ =index:store (turn t.t.t.t.path |=(=cord (slav %ud cord))) - =/ graph=(unit graph:store) (~(get by graphs) [ship term]) - ?~ graph ~ - =/ node=(unit node:store) [~ *node:store] + =/ parent-graph=(unit graph:store) (~(get by graphs) [ship term]) + ?~ parent-graph ~ ...
Avoid redefinition of _GNU_SOURCE * _GNU_SOURCE may have been set by the application and redefinition trigger warnings or error with -Werror * Fix for
@@ -99,6 +99,8 @@ typedef int blasint; /* Inclusion of Linux-specific header is needed for definition of cpu_set_t. */ #ifdef OPENBLAS_OS_LINUX +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <sched.h> #endif
Oculus Go controller has handedness;
@@ -76,24 +76,15 @@ static const float* vrapi_getBoundsGeometry(uint32_t* count) { } static int getHandIdx(Device device) { - switch (device) { - case DEVICE_HAND: - if (bridgeLovrMobileData.deviceType != BRIDGE_LOVR_DEVICE_GO || bridgeLovrMobileData.updateData.controllerCount <= 0) - return -1; - return 0; - case DEVI...
Fix issue with actors returning onscreen not having movement
@@ -184,6 +184,7 @@ void ActivateActor_b(UBYTE i) { actors[i].frame_offset = 0; actors[i].rerender = TRUE; actors[i].moving = FALSE; + actors[i].script_control = FALSE; if (actors[i].movement_ptr.bank) { // ScriptStartBg(&actors[i].movement_ptr);
Remove 4 bytes from FB_SIZE macros.
@@ -40,13 +40,13 @@ uint32_t main_fb_image_size(); #define MAIN_FB_SIZE() (main_fb_image_size()) // Use this macro to get a pointer to the free SRAM area located after the framebuffer. -#define MAIN_FB_PIXELS() (MAIN_FB()->pixels+4+MAIN_FB_SIZE()) +#define MAIN_FB_PIXELS() (MAIN_FB()->pixels + MAIN_FB_SIZE()) // Return...
Fix typo in reorderbuffer.c. Author: Peter Smith Discussion:
@@ -1867,7 +1867,7 @@ ReorderBufferStreamCommit(ReorderBuffer *rb, ReorderBufferTXN *txn) * to truncate the changes in the subscriber. Similarly, for prepared * transactions, we stop decoding if concurrent abort is detected and then * rollback the changes when rollback prepared is encountered. See - * DecodePreare. + *...
wireless/wapi/src/wapi.c: When executing a command return it's error code on failure.
@@ -1025,6 +1025,7 @@ int main(int argc, FAR char *argv[]) FAR const struct wapi_command_s *wapicmd; int sock; int i; + int ret; /* Get the command */ @@ -1084,7 +1085,8 @@ int main(int argc, FAR char *argv[]) return EXIT_FAILURE; } - if (wapicmd->handler(sock, argc - 2, argc == 2 ? NULL : &argv[2]) < 0) + ret = wapicm...
Only build ecjpake_do_round() is PSA_WANT_ALG_JPAKE is defined
@@ -705,6 +705,7 @@ exit: return( test_ok ); } +#if defined(PSA_WANT_ALG_JPAKE) static int ecjpake_do_round( psa_algorithm_t alg, unsigned int primitive, psa_pake_operation_t *server, psa_pake_operation_t *client, @@ -994,6 +995,7 @@ exit: mbedtls_free( buffer1 ); return( ret ); } +#endif /* PSA_WANT_ALG_JPAKE */ /* EN...
chat-cli: always talk to local ship only
^- card [%pass /invites %agent [our.bowl %invite-store] %watch /invitatory/chat] :: -++ our-self (name:title our.bowl) +::TODO better moon support. (name:title our.bowl) +++ our-self our.bowl :: +target-to-path: prepend ship to the path :: ++ target-to-path
py/asmx86: Comment out unused asm_x86_nop to prevent compiler warnings.
@@ -153,9 +153,11 @@ STATIC void asm_x86_generic_r32_r32(asm_x86_t *as, int dest_r32, int src_r32, in asm_x86_write_byte_2(as, op, MODRM_R32(src_r32) | MODRM_RM_REG | MODRM_RM_R32(dest_r32)); } +#if 0 STATIC void asm_x86_nop(asm_x86_t *as) { asm_x86_write_byte_1(as, OPCODE_NOP); } +#endif STATIC void asm_x86_push_r32(a...
Tweak server handshake ack
@@ -4540,7 +4540,6 @@ static ssize_t conn_handshake(ngtcp2_conn *conn, uint8_t *dest, size_t destlen, ssize_t res = 0, nwrite; uint64_t cwnd; size_t origlen = destlen; - ngtcp2_pktns *in_pktns = &conn->in_pktns; ngtcp2_pktns *hs_pktns = &conn->hs_pktns; conn->log.last_ts = ts; @@ -4702,7 +4701,7 @@ static ssize_t conn_...
Enable all implemented digests
@@ -111,7 +111,10 @@ my %md_disabler = ( foreach my $cmd ( "md2", "md4", "md5", "gost", - "sha1", "sha224", "sha256", "sha384", "sha512", + "sha1", "sha224", "sha256", "sha384", + "sha512", "sha512-224", "sha512-256", + "sha3-224", "sha3-256", "sha3-384", "sha3-512", + "shake128", "shake256", "mdc2", "rmd160", "blake2b...
shoe: improve +on-load logic Turns out that if we use a tag we can just check the value without needing vase operations.
=^ cards shoe on-init:og [(deal cards) this] :: - ++ on-save !>([shoe-inner=on-save:og shoe-self=state]) + ++ on-save !>([%shoe-app on-save:og state]) :: ++ on-load |= old-state=vase :: we could be upgrading from a shoe-less app, in which case the vase :: contains inner application state instead of our +on-save. :: to ...
Core(M): Renamed ARM_MPU_RLAR to ARM_MPU_RLAR_PXN for Armv8.1-M for backward compatibility.
((ARM_MPU_AP_(RO, NP) << MPU_RBAR_AP_Pos) & MPU_RBAR_AP_Msk) | \ ((XN << MPU_RBAR_XN_Pos) & MPU_RBAR_XN_Msk)) -#if !defined(MPU_RLAR_PXN_Pos) || !defined(MPU_RLAR_PXN_Msk) - /** \brief Region Limit Address Register value * \param LIMIT The limit address bits [31:5] for this memory region. The value is one extended. * \...
Build: Openjpeg 2.5.0
# granted to it by virtue of its status as an intergovernmental organisation nor # does it submit to any jurisdiction. -# - Try to find the OpenJPEG includes and library (version 1.5.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x) +# - Try to find the OpenJPEG includes and library +# (versions 1.5.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x 2.5.x) #...
Improve AVX512 testcase clang 3.4 managed to accept the original test code, only to fail on the actual Skylake asm later
@@ -203,8 +203,8 @@ $binformat = bin64 if ($data =~ /BINARY_64/); $no_avx512= 0; if (($architecture eq "x86") || ($architecture eq "x86_64")) { - $code = '"vaddps %zmm1, %zmm0, %zmm0"'; - print $tmpf "void main(void){ __asm__ volatile($code); }\n"; + $code = '"vbroadcastss -4 * 4(%rsi), %zmm2"'; + print $tmpf "int main...
Fix TINC gpactivatestandby negative test The gpactivatestandby utility was recently changed in commit to disable some validations on master data directory. The commit was merged without running this test and made our CI pipeline red... so here's the test fix to update expected error handling stdout.
@@ -57,8 +57,11 @@ class gpactivatestandby(StandbyRunMixin, MPPTestCase): 'gpactivatestandby -a -d invalid_directory') cmd.run() results = cmd.get_results() - expected = 'Current setting of MASTER_DATA_DIRECTORY not same as -d parameter' + expected = 'Please make sure the command gpactivatestandby is executed on curren...
Remove samples from the help menu
@@ -197,16 +197,6 @@ class DocumentBrowserViewController: UIViewController, UICollectionViewDataSourc } })) - sheet.addAction(UIAlertAction(title: Localizable.Help.samples, style: .default, handler: { _ in - if let url = Bundle.main.url(forResource: "Samples", withExtension: "") { - guard let vc = self.storyboard?.inst...
Fix comment in Python exmaple
@@ -2,7 +2,7 @@ from tinyspline import * # Create a cubic spline with 7 control points in 2D using # a clamped knot vector. This call is equivalent to: -# spline = BSpline(7, 2, 3, CLAMPED) +# spline = BSpline(7, 2, 3, BSpline.Clamped) spline = BSpline(7) # Setup control points.
allow deleting all messages, it should check permission first
@@ -32,13 +32,21 @@ discord_delete_messages_by_author_id( NTL_T(ja_u64) list = NULL; int count = 0; for (int i = 0; messages[i]; i++) { - if (messages[i]->author->id == author_id) + if (author_id == 0) + count ++; + else if (messages[i]->author->id == author_id) count ++; } + if (count == 0) + return; list = (NTL_T(ja_...
Docs: Update Sample.plist
<key>Add</key> <array> <dict> - <key>BundleName</key> + <key>BundlePath</key> <string>Lilu.kext</string> <key>Comment</key> <string></string> <string>Contents/Info.plist</string> </dict> <dict> - <key>BundleName</key> + <key>BundlePath</key> <string>VirtualSMC.kext</string> <key>Comment</key> <string></string> <string>...
Fix core load cleanup loop conf_meta->core_count is not modified during load/recovery in the latest version. Thus in case of error in cores initialization, in order to iterate over the initialized cores we must depend on core->added only, regardles of conf_meta->core_count value. for_each_core() macro does exactly this...
@@ -300,33 +300,29 @@ static void init_attached_data_structures_recovery(ocf_cache_t cache, } /**************************************************************** - * Function for removing all uninitialized core objects * + * Function for removing all initialized core objects * * from the cache instance. * * Used in case ...
fix tls1_2 only sig_algs order issue
@@ -6588,11 +6588,11 @@ static uint16_t ssl_preset_suiteb_sig_algs[] = { /* NOTICE: see above */ #if defined(MBEDTLS_SSL_PROTO_TLS1_2) static uint16_t ssl_tls12_preset_suiteb_sig_algs[] = { -#if defined(MBEDTLS_SHA384_C) - MBEDTLS_SSL_SIG_ALG( MBEDTLS_SSL_HASH_SHA384 ) -#endif #if defined(MBEDTLS_SHA256_C) MBEDTLS_SSL_...
Do not send simple mouse move events Moving the mouse without any button pressed has no effect on Android. Therefore, do not even send these very frequent events.
@@ -340,6 +340,10 @@ static void handle_key(const SDL_KeyboardEvent *event) { } static void handle_mouse_motion(const SDL_MouseMotionEvent *event, struct size screen_size) { + if (!event->state) { + // do not send motion events when no button is pressed + return; + } struct control_event control_event; if (mouse_motion...
Apache NimBLE 1.5.0 release
@@ -22,8 +22,8 @@ repo.versions: "0.0.0": "master" "0-dev": "0.0.0" - "0-latest": "1.4.0" - "1-latest": "1.4.0" + "0-latest": "1.5.0" + "1-latest": "1.5.0" "1.0.0": "nimble_1_0_0_tag" "1.1.0": "nimble_1_1_0_tag"
Use PSA_BITS_TO_BYTES instead of open-coded calculation in PSA version of ssl_get_ecdh_params_from_cert()
@@ -2897,7 +2897,7 @@ static int ssl_get_ecdh_params_from_cert( mbedtls_ssl_context *ssl ) PSA_KEY_TYPE_ECC_KEY_PAIR( ssl->handshake->ecdh_psa_type ) ); psa_set_key_bits( &key_attributes, ssl->handshake->ecdh_bits ); - key_len = ( key->grp.pbits + 7 ) / 8; + key_len = PSA_BITS_TO_BYTES( key->grp.pbits ); ret = mbedtls_...
fixed minor issue on default depth for sprite inserted at the head
@@ -400,8 +400,9 @@ Sprite* SPR_addSpriteEx(const SpriteDefinition *spriteDef, s16 x, s16 y, u16 att sprite->seqInd = -1; sprite->x = x + 0x80; sprite->y = y + 0x80; - // sprite is always added at the end of list so we use MAX_DEPTH here - sprite->depth = SPR_MAX_DEPTH; + // depending sprite position (first or last) we...
GroupFeedHeader: do not mutate state
@@ -6,16 +6,14 @@ import React, { } from 'react'; export function GroupFeedHeader(props) { - const { baseUrl, history, graphResource, vip } = props; + const { baseUrl, history, vip } = props; let graph = props.graph; const historyLocation = history.location.pathname; - const graphId = `${graphResource.ship.slice(1)}/${...
hslua-module-zip: all to use archive as function The module behaves like `zip` when called as a function.
@@ -18,7 +18,7 @@ local make_sample_archive = function (opts) local fh = io.open(filename, 'w') fh:write(contents) fh:close() - return zip.zip{filename} + return zip{filename} end) end) end @@ -48,7 +48,6 @@ return { end) end), - test('recursive', function () system.with_tmpdir('archive', function (tmpdir) system.with_...
Benchmarks: add prefix benchmark_ to executables The Benchmarks executables have no prefex, this leads to a non intuitive build behavior like "make large". This commit adds a prefix and a suffix for the callgrind call.
@@ -5,17 +5,17 @@ add_headers (HDR_FILES) macro (do_benchmark source) include_directories ("${CMAKE_CURRENT_SOURCE_DIR}") set (SOURCES ${HDR_FILES} benchmarks.c benchmarks.h ${source}.c) - add_executable (${source} ${SOURCES}) - add_dependencies (${source} kdberrors_generated) + add_executable (benchmark_${source} ${SO...
Allow binding for Xiaomi Mijia Smart Light Sensor lumi.sen_ill.mgl01
@@ -2031,6 +2031,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso sensor->modelId().startsWith(QLatin1String("RH3052")) || // Xiaomi sensor->modelId().startsWith(QLatin1String("lumi.plug.maeu01")) || + sensor->modelId().startsWith(QLatin1String("lumi.sen_ill.mgl01")) || // iris sens...
ci/cd: disabling memcheck/valgrind due to unreasonable runtime
@@ -48,16 +48,16 @@ examples: # compile and run all example programs with valgrind # TODO: ensure no errors -examples-memcheck: - stage: test - script: - - make -j4 examples - # setting --track-origins=yes gives more detail but takes longer than gitlab allows - - ls examples/*_example | sed -E "s#examples/(.*)#valgrind...