message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Update Espressif Cmake for PKCS port | @@ -106,13 +106,13 @@ target_include_directories(
)
# PKCS11
-afr_mcu_port(pkcs11)
+afr_mcu_port(pkcs11_implementation)
target_link_libraries(
- AFR::pkcs11::mcu_port
+ AFR::pkcs11_implementation::mcu_port
INTERFACE AFR::pkcs11_mbedtls
)
target_sources(
- AFR::pkcs11::mcu_port
+ AFR::pkcs11_implementation::mcu_port
INT... |
Improve the clock Settings for switching to high speed mode in the SDIO framework. | @@ -892,7 +892,7 @@ static rt_int32_t sdio_init_card(struct rt_mmcsd_host *host, rt_uint32_t ocr)
if (card->flags & CARD_FLAG_HIGHSPEED)
{
- mmcsd_set_clock(host, 50000000);
+ mmcsd_set_clock(host, card->host->freq_max > 50000000 ? 50000000 : card->host->freq_max);
}
else
{
|
Enable i2c_scan only when there is I2C peripheral
The slinky app includes i2c_scan, but this causes a build error
on HAL ports which don't include an i2c driver. This change only
includes i2c_scan when some I2C_x switch is enabled. | @@ -26,7 +26,6 @@ pkg.keywords:
pkg.deps:
- test/flash_test
- - test/i2c_scan
- mgmt/imgmgr
- mgmt/newtmgr
- mgmt/newtmgr/transport/nmgr_shell
@@ -40,6 +39,10 @@ pkg.deps:
- sys/stats/full
- boot/split
+pkg.deps.I2C_0: test/i2c_scan
+pkg.deps.I2C_1: test/i2c_scan
+pkg.deps.I2C_2: test/i2c_scan
+
pkg.deps.CONFIG_NFFS:
-... |
Check for null requests | @@ -320,6 +320,9 @@ namespace MiningCore.Stratum
// deserialize request
var request = DeserializeRequest(line);
+ if (request == null)
+ throw new JsonException("Unable to deserialize request");
+
// forward
await onNext(this, request);
}
|
test/motion_common.h: Format with clang-format
BRANCH=none
TEST=none | @@ -30,7 +30,8 @@ extern const unsigned int motion_sensor_count;
void wait_for_valid_sample(void);
void feed_accel_data(const float *array, int *idx,
- int (filler)(const struct motion_sensor_t *s, const float f));
+ int(filler)(const struct motion_sensor_t *s,
+ const float f));
/*
* External data - from
|
Testing: Add link to Debian package | @@ -104,8 +104,8 @@ Above environment is needed for both `kdb run_all` (installed test cases)
and `make run_all` (test cases executed from the build directory).
For `make run_all` following development tools enable even more tests:
-- The script `checkbashisms` is needed to check for bashism (tests/shell/check_bashisms... |
INI parser: use first delimiter if everything else fails | @@ -449,8 +449,26 @@ int ini_parse_file (FILE * file, const struct IniConfig * config, void * user)
{
rstrip (start);
name = start;
+ end = strchr (start, delim);
+ if (!end)
+ {
value = NULL;
}
+ else
+ {
+ if (*end == delim) *end = '\0';
+ rstrip (end - 1);
+ value = lskip (end + 1);
+ rstrip (value);
+ if (*value ==... |
fix(specs/Makefile): generate code only if WDIR is missing | @@ -36,24 +36,17 @@ define \n
$(blank)
endef
-$(OBJDIR)/%.o : $(WDIR)/%.c
- $(CC) -I$(COMMON_DIR) $(CFLAGS) -c -o $@ $< $(LDFLAGS)
-
-all: gen
-
-build: all
- $(MAKE) $(OBJS)
-
-gen: $(CEE_UTILS_DIR) | $(MAIN)
- @ rm -rf $(WDIR)/*/one-specs.h
-
+define generate_source
# Generate source files (specs-code/%/*.c)
$(foreac... |
Add ImfExportUtil.h to Makefile.am | @@ -17,7 +17,7 @@ libIlmImfUtil_la_SOURCES = \
ImfFlatImageIO.h ImfFlatImageIO.cpp \
ImfDeepImageIO.h ImfDeepImageIO.cpp \
ImfImageDataWindow.h ImfImageDataWindow.cpp \
- ImfImageChannelRenaming.h
+ ImfImageChannelRenaming.h ImfUtilExport.h
libIlmImfUtil_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ \
-no-undefined
|
Fix matlab.lua | -- @file matlab.lua
--
--- define module
-local matlab = matlab or {}
-
-- get matlab versions
-function matlab.versions()
+function versions()
-- see https://www.mathworks.com/products/compiler/matlab-runtime.html
return
@@ -53,7 +50,7 @@ function matlab.versions()
end
-- get matlab versions names
-function matlab.ver... |
The dedicated windows tool at APPSDIR/tools/mkkconfig.bat uses , which is not a windows shell variable, and is left uninitialized, but in fact should be the current directory. | @@ -75,6 +75,9 @@ REM GOTO :End
REM )
)
+REM Get the current directory
+SET APPSDIR=%~dp0
+
Echo # > %kconfig%
Echo # For a description of the syntax of this configuration file, >> %kconfig%
Echo # see the file kconfig-language.txt in the NuttX tools repository. >> %kconfig%
@@ -89,10 +92,9 @@ IF %menu% NEQ "" (
DIR /B... |
Fixed edge case for hidden operand scaling (Fixes | @@ -311,45 +311,29 @@ ZyanU8 ZydisGetMachineModeWidth(ZydisMachineMode machine_mode)
*/
ZyanU8 ZydisGetAszFromHint(ZydisAddressSizeHint hint)
{
- switch (hint)
- {
- case ZYDIS_ADDRESS_SIZE_HINT_NONE:
- return 0;
- case ZYDIS_ADDRESS_SIZE_HINT_16:
- return 16;
- case ZYDIS_ADDRESS_SIZE_HINT_32:
- return 32;
- case ZYDI... |
Fix tests/test_gop.sh environmental variable testing | @@ -13,8 +13,8 @@ valgrind_test 264x130 10 $common_args --gop=8 -p1 --owf=4
valgrind_test 264x130 10 $common_args --gop=lp-g4d3t1 -p5 --owf=4
valgrind_test 264x130 10 $common_args --gop=8 -p8 --owf=4 --no-open-gop
# Do more extensive tests in a private gitlab CI runner
-[ ! -z "$GITLAB_CI" ] && valgrind_test 264x130 20... |
test: accel_cal: add setup/teardown methods
BRANCH=none
TEST=make buildall -j | @@ -125,11 +125,19 @@ void before_test(void)
accel_cal_reset(&cal);
}
+void after_test(void) {}
+
TEST_MAIN()
{
ztest_test_suite(test_accel_cal,
- ztest_unit_test(test_calibrated_correctly_with_kasa),
- ztest_unit_test(test_calibrated_correctly_with_newton),
- ztest_unit_test(test_temperature_gates));
+ ztest_unit_test... |
HV: update opcode when decode_two_byte_opcode()
The vie->opcode should be updated when decode_two_byte_opcode(),
otherwise for two bytes opcode emulate(movzx/movsx) will fail. | @@ -1778,6 +1778,7 @@ static int decode_two_byte_opcode(struct instr_emul_vie *vie)
return -1;
}
+ vie->opcode = x;
vie->op = two_byte_opcodes[x];
if (vie->op.op_type == VIE_OP_TYPE_NONE) {
|
ossl_sk_ASN1_UTF8STRING2text(): Minor generalization and refactoring for readability | @@ -413,9 +413,9 @@ unsigned char *ASN1_STRING_data(ASN1_STRING *x)
}
#endif
+/* |max_len| excludes NUL terminator and may be 0 to indicate no restriction */
char *ossl_sk_ASN1_UTF8STRING2text(STACK_OF(ASN1_UTF8STRING) *text,
- const char *sep,
- size_t max_len /* excluding NUL terminator */)
+ const char *sep, size_t ... |
Fix incorrect unknown platform response in afu_platform_config | @@ -71,7 +71,7 @@ def getIntendedDevFamily(platform_db):
# Yes -- return the expanded family and the version number
return families[f[0]] + f[1:]
- return "Unknown"
+ return f
#
|
Workaround the case where client keeps sending old connection ID | @@ -1588,8 +1588,16 @@ static int conn_recv_pkt(ngtcp2_conn *conn, uint8_t *pkt, size_t pktlen,
if (hd.flags & NGTCP2_PKT_FLAG_LONG_FORM) {
pkt_num_bits = 32;
- if (hd.type == NGTCP2_PKT_1RTT_PROTECTED_K0) {
+ switch (hd.type) {
+ case NGTCP2_PKT_1RTT_PROTECTED_K0:
encrypted = 1;
+ break;
+ case NGTCP2_PKT_SERVER_CLEAR... |
document limitations of OIDCUnAuthzAction | # "302" redirect to the URL specified in the <argument> parameter
# "auth" redirect the user to the OpenID Connect Provider or Discovery page for authentication (<argument> is unused)
# Useful in Location/Directory/Proxy path contexts that need to do stepup authentication
+# Be aware that this will only work in combina... |
Fix clap dependency | @@ -17,6 +17,6 @@ s2n-tls = { version = "=0.0.8", path = "../s2n-tls" }
tokio = { version = "1", features = ["net", "time"] }
[dev-dependencies]
-clap = { version = "3.1", features = ["derive"] }
+clap = { version = "~3.1", features = ["derive"] }
rand = { version = "0.8" }
tokio = { version = "1", features = [ "io-std... |
Force clean build directories in build nodes | @@ -87,7 +87,7 @@ pipeline {
stages {
stage('Clean') {
steps {
- sh 'git clean -fdx'
+ sh 'git clean -ffdx'
}
}
stage('Build R') {
@@ -127,7 +127,7 @@ pipeline {
stages {
stage('Clean') {
steps {
- bat 'git clean -fdx'
+ bat 'git clean -ffdx'
}
}
stage('Build R') {
@@ -167,7 +167,7 @@ pipeline {
stages {
stage('Clean')... |
ci: Update Debian unstable packages
This syncs Debian unstable with Ubuntu 18.04 in order to get the clang
package. It also adds qemu to the Debian install, which makes sense
Debian also has 2.12. | FROM debian:unstable
ENV DEBIAN_FRONTEND noninteractive
-RUN apt-get update -qq
RUN if [ `arch` != "ppc64le" ]; then apt-get update -qq && apt-get install -y gcc-powerpc64le-linux-gnu; fi
-RUN apt-get update -qq && apt-get install -y gcc ccache expect libssl-dev wget xterm curl device-tree-compiler build-essential gcc ... |
when doing set to selection, if there were previously multiple inputs
and you were selecting a single one of those inputs, it would fail and
remove all the input connections | @@ -105,7 +105,7 @@ createInputGeometryNode(string $transformAttr, string $geometryAttr)
// if a houdiniInputGeometry already exists, reuse it
{
string $connections[] =
- `listConnections -type houdiniInputGeometry -destination true
+ `listConnections -type houdiniInputGeometry -destination true -source false
$geometry... |
sixtop: return right enum value
The function returns a sixp_trans_mode_t,
so use an enum value from that enum. | @@ -343,7 +343,7 @@ sixp_trans_get_mode(sixp_trans_t *trans)
assert(trans != NULL);
if(trans == NULL) {
LOG_ERR("6P-trans: sixp_trans_get_mode() fails because trans is NULL\n");
- return SIXP_TRANS_STATE_UNAVAILABLE;
+ return SIXP_TRANS_MODE_UNAVAILABLE;
}
return trans->mode;
}
|
Update spec file to build SLE | @@ -13,15 +13,29 @@ ExclusiveArch: x86_64
Requires: libipmctl%{?_isa} = %{version}-%{release}
BuildRequires: pkgconfig(libndctl)
BuildRequires: cmake
+
%if 0%{?fedora}
BuildRequires: python2
%endif
-%if 0%{?rhel}
-BuildRequires: python
+
+%if 0%{?rhel} == 8
+BuildRequires: python3
%endif
+
+
BuildRequires: gcc
BuildReq... |
fixe menu name | @@ -784,7 +784,7 @@ avtUintahFileFormat::ReadMetaData(avtDatabaseMetaData *md, int timeState)
#endif
scalar = new avtScalarMetaData();
- scalar->name = "Patch/Rank";
+ scalar->name = "Patch/ProcId";
scalar->meshName = mesh_for_this_var;
scalar->centering = cent;
scalar->hasDataExtents = false;
@@ -1680,7 +1680,7 @@ avt... |
hslua-core: fix docs for dofile, loadfile.
Files are opened in Lua, not Haskell. | @@ -84,7 +84,7 @@ dostring s = do
{-# INLINABLE dostring #-}
-- | Loads and runs the given file. Note that the filepath is
--- interpreted by Haskell, not Lua. The resulting chunk is named using
+-- interpreted by Lua, not Haskell. The resulting chunk is named using
-- the UTF8 encoded filepath.
dofile :: FilePath -> L... |
Add an EVP demo for CMAC
Fixes openssl#14110 | CFLAGS = $(OPENSSL_INCS_LOCATION) -Wall
LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
-all: gmac poly1305
+all: gmac hmac-sha512 cmac-aes256 poly1305
gmac: gmac.o
hmac-sha512: hmac-sha512.o
+cmac-aes256: cmac-aes256.o
poly1305: poly1305.o
-gmac hmac-sha512 poly1305:
+gmac hmac-sha512 cmac-aes256 poly1305:
$(CC) $(C... |
YAwn: Update CMake code for old versions of CMake | @@ -34,7 +34,7 @@ if (DEPENDENCY_PHASE)
GRAMMAR_INPUT
"${GRAMMAR_INPUT}")
foreach (line ${GRAMMAR_INPUT})
- string (APPEND GRAMMAR "\"${line}\\n\"\n")
+ set (GRAMMAR "${GRAMMAR}\"${line}\\n\"\n")
endforeach (line ${GRAMMAR_INPUT})
file (WRITE ${SOURCE_FILE_GRAMMAR}
|
Remove email from optional reviewers | @@ -54,7 +54,7 @@ class CheckinBranch {
[string]$completePR = "False";
[string]$pullRequestTitle;
[string]$workitem = "37338822"
- [string]$optionalReviewers = "thhous@microsoft.com;nibanks@microsoft.com"
+ [string]$optionalReviewers = "nibanks@microsoft.com"
[CheckinFile[]]$CheckinFiles;
CheckinBranch($ManifestFile, $... |
Added comment to compiler switch and removed commented codes | #include "settings.h"
#include "target_board.h"
-//#define HEX_TO_ASCII(x) ('0' + (x>9 ? x+7 : x))
-
static char hex_to_ascii(uint8_t x)
{
return ('0' + (x>9 ? x+0x27 : x));
- //return ('0' + (x>9 ? x+0x7 : x));
}
// Constant variables
@@ -104,6 +101,7 @@ const char *info_get_unique_id_string_descriptor(void)
return us... |
[mod_webdav] hide unused funcs depending on build
hide unused funcs depending on build flags | @@ -3455,6 +3455,8 @@ webdav_propfind_dir (webdav_propfind_bufs * const restrict pb)
}
+#if defined(USE_PROPPATCH) || defined(USE_LOCKS)
+
static int
webdav_open_chunk_file_rd (chunk * const c)
{
@@ -3518,7 +3520,6 @@ webdav_mmap_file_chunk (chunk * const c)
}
-#if defined(USE_PROPPATCH) || defined(USE_LOCKS)
__attribu... |
SOVERSION bump to version 7.11.11 | @@ -73,7 +73,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 11)
-set(SYSREPO_MICRO_SOVERSION 10)
+set(SYSREPO_MICRO_... |
travis CHANGE handling coverity certificate | @@ -34,11 +34,14 @@ jobs:
branch_pattern: libyang2
before_install:
# check if something changed from the last coverity build
+ - echo "Last coverity build on revision" `cat $HOME/cache/coveritybuild 2>/dev/null`
+ - echo "Current revision" `git rev-parse HEAD`
- if [ "`git rev-parse HEAD`" = "`cat $HOME/cache/coverityb... |
Further fixes in CMakeLists.txt
See | @@ -7,8 +7,8 @@ string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} PROJECT_IS_
if(PROJECT_IS_TOP_LEVEL)
find_package(Vulkan REQUIRED)
-endif()
include_directories(${Vulkan_INCLUDE_DIR})
+endif()
# VulkanMemoryAllocator contains an sample application which is not built by default
option(VMA_BUILD_SAMPL... |
build all script: account for skipped examples | @@ -88,8 +88,11 @@ else
fi
NUM_SUCCESS=0
+NUM_SKIPPED=0
NUM_FAILED=0
+rm -f failed.log
+rm -f failed-full.log
FAILED=
for platform in $PLATFORMS
@@ -132,14 +135,23 @@ do
# Build the goal
$LOG_INFO "make -C \"$example_dir\" -j TARGET=$platform BOARD=$board $GOAL"
- if make -C "$example_dir" -j TARGET=$platform BOARD=$bo... |
fix for adding asset to a no-history mesh | @@ -244,7 +244,7 @@ houdiniEngine_addHistory(string $assetNode)
// need to previous input from this asset if it's not the same as the current one
- houdiniEngine_setHistoryAttr($inputAttr, $objects, $components);
+ houdiniEngine_connectHistory($inputAttr, $objects, $components);
// if we can insert into history
// remo... |
Fix no-engine
Fix a misplaced "#endif" which was disabling a little too much code. | @@ -101,10 +101,10 @@ const OPTIONS req_options[] = {
{"engine", OPT_ENGINE, 's', "Use engine, possibly a hardware device"},
{"keygen_engine", OPT_KEYGEN_ENGINE, 's',
"Specify engine to be used for key generation operations"},
+#endif
{"in", OPT_IN, '<', "Input file"},
{"inform", OPT_INFORM, 'F', "Input format - DER or... |
[hip_roblas test] - Fix errors in Makefile. | @@ -7,7 +7,8 @@ TESTSRC_AUX =
TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX)
OMP_FLAGS = --offload-arch=${AOMP_GPU}
CFLAGS = -x hip -I /opt/rocm/rocblas/include/ --offload-arch=${AOMP_GPU} -std=c++11
-OMPHIP ?= $(AOMP)
+AOMPHIP ?= $(AOMP)
+VERS = $(shell $(AOMP)/bin/aompversion)
ifeq ($(shell expr $(VERS) \>= 12.0), 1)
R... |
Data window tuning | @@ -16,4 +16,4 @@ void SurviveSensorActivations_add(SurviveSensorActivations *self, struct PoserDa
}
// Roughly 31ms at a 48mhz clock rate
-uint32_t SurviveSensorActivations_default_tolerance = 1500000;
\ No newline at end of file
+uint32_t SurviveSensorActivations_default_tolerance = 500000;
\ No newline at end of fil... |
actions FEATURE upload to codecov on devel push
Seems pull requests are handled correctly but
pushes to branches not. | @@ -43,6 +43,17 @@ jobs:
make-prepend: "cov-build --dir cov-int",
make-target: ""
}
+ - {
+ name: "Codecov",
+ os: "ubuntu-latest",
+ build-type: "Debug",
+ cc: "gcc",
+ options: "-DENABLE_COVERAGE=ON",
+ packages: "libcmocka-dev lcov",
+ snaps: "",
+ make-prepend: "",
+ make-target: ""
+ }
steps:
- uses: actions/check... |
shm mod BUGFIX dependencies are not needed when returning data
For sr_get_*() functions, no dependent modules
are needed as they will only be filtered and
returned, no modification or validation. | @@ -223,10 +223,10 @@ sr_shmmod_modinfo_collect_xpath(struct sr_mod_info_s *mod_info, const char *xpat
continue;
}
- /* find the module in SHM and add it with any dependencies */
+ /* find the module in SHM, we need just its data, no dependencies as we will be only returning these data */
shm_mod = sr_shmmain_find_modu... |
stm32/lwip_inc: Update to enable mDNS, TCP listen backlog, faster DHCP. | #include <stdint.h>
+// This protection is not needed, instead we execute all lwIP code at PendSV priority
+#define SYS_ARCH_DECL_PROTECT(lev) do { } while (0)
+#define SYS_ARCH_PROTECT(lev) do { } while (0)
+#define SYS_ARCH_UNPROTECT(lev) do { } while (0)
+
#define NO_SYS 1
#define SYS_LIGHTWEIGHT_PROT 1
#define MEM_... |
testing/uclibcxx_test: Define TESTDIR correctly | include $(APPDIR)/Make.defs
CXXEXT := .cpp
-ORIGS := $(wildcard $(TOPDIR)/libs/libxx/uClibc++/tests/*.cpp)
+
+TESTDIR = $(TOPDIR)/libs/libxx/uClibc++/tests
+ORIGS := $(wildcard $(TESTDIR)/*.cpp)
BLACKSRCS := wchartest.cpp
BLACKSRCS += excepttest.cpp
|
move sleep back | @@ -219,13 +219,13 @@ int epoll_wait(int epfd,
w->timeout = register_timer(milliseconds(timeout), closure(h, epoll_blocked_finish, w));
#ifdef EPOLL_DEBUG
rprintf(" registered timer %p\n", w->timeout);
- rprintf(" sleeping...\n");
#endif
+ }
+
+ rprintf(" sleeping...\n");
w->sleeping = true;
thread_sleep(current);
}
- ... |
fixed test case to be more transparent | @@ -99,6 +99,7 @@ static void compare_massfunc(int model, struct massfunc_data * data)
double a = 1.0;
double logmass = 10;
+ double odelta = 200;
double rho_m = RHO_CRITICAL*cosmo->params.Omega_m*cosmo->params.h*cosmo->params.h;
// compare to benchmark data
@@ -106,7 +107,7 @@ static void compare_massfunc(int model, s... |
Scripts: Documentation | # nor does it submit to any jurisdiction.
#
#######################################################################
-# Script to generate parameter definition files for GRIB2
-# Read an input TSV file which should contain parameter keys
-# and generate the .def files for them
+# Script to generate parameter definition ... |
rust/hex: update doc and unsafe notice | @@ -24,12 +24,11 @@ pub extern "C" fn rust_util_all_ascii(cstr: CStr) -> bool {
/// Convert bytes to hex representation
///
-/// * `buf_ptr` - Must be a valid pointer to an array of bytes
-/// * `buf_len` - Length of buffer, `buf_ptr[buf_len-1]` must be a valid dereference
-/// * `out_ptr` - Must be a valid pointer to ... |
top bar: sets status on field blur
fixes urbit/landscape#531 | @@ -50,6 +50,9 @@ export function SetStatus(props: any) {
value={_status}
autocomplete='off'
width='100%'
+ onBlur={() => {
+ editStatus();
+ }}
onKeyPress={(evt) => {
if (evt.key === 'Enter') {
editStatus();
|
[examples] correct cmake path for examples | # Set minimum version for cmake
cmake_minimum_required(VERSION 3.0.2)
-set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
# Force out-of-source build
include(OutOfSourcesBuild)
|
Attribute Set Identifier correction
Electrical Measurement cluster | @@ -2076,7 +2076,7 @@ Note: It does not clear or delete previous weekly schedule programming configura
<attribute id="0x0905" name="RMS Voltage" type="u16" access="r" required="o" default="0xFFFF"></attribute>
<attribute id="0x0908" name="RMS Current" type="u16" access="r" required="o" default="0xFFFF"></attribute>
</a... |
Far plane calculation update | @@ -555,27 +555,27 @@ namespace carto {
cglib::ray3<double> ray(pos0, pos1 - pos0);
double t = -1;
- double z = std::pow(2.0f, -_zoom) * zoom0Distance * options.getDrawDistance();
- if (options.getProjectionSurface()->calculateHitPoint(ray, heightMin, t)) {
- if (t >= 0) {
- z = cglib::dot_product(ray(t) - pos0, zProjV... |
fix docs sampler | @@ -35,8 +35,17 @@ void NCatboostCuda::TQuerywiseSampler::SampleQueries(TGpuAwareRandom& random, co
maxQuerySize,
&sampledWeight);
+ {
+ auto nzElements = TCudaBuffer<ui32, TMapping>::CopyMapping(indices);
+ auto docs = TCudaBuffer<ui32, TMapping>::CopyMapping(indices);
+ docs.Copy(indices);
+
FilterZeroEntries(&sample... |
replace (char *) with (void __user *) in cma.c | @@ -24,7 +24,7 @@ static long cma_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
if(cmd != CMA_ALLOC) return -ENOTTY;
- rc = copy_from_user(&buffer, (char *)arg, sizeof(buffer));
+ rc = copy_from_user(&buffer, (void __user *)arg, sizeof(buffer));
if(rc) return rc;
cma_free();
@@ -41,7 +41,7 @@ static lon... |
Expr: Place function pipes above comparion ops in precedence. | @@ -233,17 +233,17 @@ static uint8_t priority_for_op(lily_expr_op o)
case expr_logical_and:
prio = 2;
break;
- /* Put pipes lower so they scoop up as much as possible. This seems
- right. */
- case expr_func_pipe:
- prio = 3;
- break;
case expr_eq_eq:
case expr_not_eq:
case expr_lt:
case expr_gr:
case expr_lt_eq:
case ... |
Util typetraits.h: compile fix for MSVS 15.7 | #include <type_traits>
#include <stlfwd>
-//NOTE: to be replaced with std::bool_constant in c++17
+#if _LIBCPP_STD_VER >= 17
+template <bool B>
+using TBoolConstant = std::bool_constant<B>;
+#else
template <bool B>
struct TBoolConstant : std::integral_constant<bool, B> {};
+#endif
-//NOTE: to be replaced with std::nega... |
fix history_list on macos | @@ -48,6 +48,19 @@ tb_int_t xm_readline_history_list(lua_State* lua)
// history list
lua_newtable(lua);
+#ifdef TB_CONFIG_OS_MACOSX
+ for (tb_int_t i = 1; i <= history_length; ++i)
+ {
+ lua_newtable(lua);
+ // field line
+ lua_pushstring(lua, "line");
+ lua_pushstring(lua, history_get(i) -> line);
+ lua_settable(lua, ... |
Fix GLEDOPTO modelid and manufacturer shown for all endpoints
Issue | @@ -13159,7 +13159,7 @@ void DeRestPlugin::idleTimerFired()
LightNode *lightNode = &d->nodes[d->lightIter];
d->lightIter++;
- if (!lightNode->isAvailable() || !lightNode->lastRx().isValid() || !lightNode->node())
+ if (!lightNode->isAvailable() || !lightNode->lastRx().isValid() || !lightNode->node() || lightNode->state... |
external/esp_idf: Initialize timer structure before using
A crash may happens when we call work_cancel() and
pass an uninitialized work_s structure (work_s.worker is not NULL).
Apply this patch to initilize work_s structure after allocated. | @@ -424,7 +424,7 @@ static void IRAM_ATTR timer_setfn_wrapper(void *ptimer, void *pfunction, void *p
ETSTimer *etimer = (ETSTimer *) ptimer;
if (etimer->timer_period != TIMER_INITIALIZED_VAL) {
- memset(ptimer, 0, sizeof(*ptimer));
+ memset(etimer, 0, sizeof(ETSTimer));
etimer->timer_period = TIMER_INITIALIZED_VAL;
}
@... |
hark: contain snippet gradient | @@ -94,7 +94,7 @@ const GraphNodeContent = ({ contents, contacts, mod, description, index, remoteC
<Box mb="2" fontWeight="500">
<Text>{header}</Text>
</Box>
- <Box overflow="hidden" maxHeight="400px">
+ <Box overflow="hidden" maxHeight="400px" position="relative">
<Text lineHeight="tall">{snippet}</Text>
<FilterBox
wi... |
king: missing changes in Main, plus setrlimit for fds | @@ -99,6 +99,7 @@ import qualified Data.Set as Set
import qualified Data.Text as T
import qualified Network.HTTP.Client as C
import qualified System.Posix.Signals as Sys
+import qualified System.Posix.Resource as Sys
import qualified System.ProgressBar as PB
import qualified System.Random as Sys
import qualified Urbit.... |
fix vector allocation in reel | u3_noun b)
{
u3_noun pro = u3k(u3x_at(u3x_sam_3, b));
- if ( u3_nul == a ) {
- return pro;
- }
- else {
+ if ( u3_nul != a ) {
u3j_site sit_u;
u3_noun i, t = a;
c3_w j_w, len_w = 0, all_w = 89, pre_w = 55;
- u3_noun* vec = u3a_malloc(all_w);
+ u3_noun* vec = u3a_malloc(all_w * sizeof(u3_noun));
// stuff list into an ar... |
fix add label to metakey area | @@ -81,7 +81,11 @@ BasicWindow {
}
}
}
-
+ Label {
+ id: metaKeyLabel
+ Layout.topMargin: defaultMargins
+ text: "Metakeys:"
+ }
BasicRectangle {
id: metaArea
|
Adding tol in primalResidual and dualResidual
Adding projection error in setErrorArray | @@ -53,7 +53,7 @@ double getStepLength(const double * const x, const double * const dx, const unsi
* \param rnorm is the relative norm of out = |out|/max{|velocity|, |H x globalVelocity|, |w|}
*/
void primalResidual(const double * velocity, NumericsMatrix * H, const double * globalVelocity, const double * w,
- double *... |
RAA489000: Organize header file
Put register definitions in ascending order and note some definitions
are no longer applicable.
BRANCH=None
TEST=make -j buildall | /* Vendor registers */
#define RAA489000_TCPC_SETTING1 0x80
+#define RAA489000_VBUS_CURRENT_TARGET 0x92
+#define RAA489000_VBUS_OCP_UV_THRESHOLD 0x94
#define RAA489000_TYPEC_SETTING1 0xC0
#define RAA489000_PD_PHYSICAL_SETTING1 0xE0
#define RAA489000_PD_PHYSICAL_PARAMETER1 0xE8
-#define RAA489000_VBUS_CURRENT_TARGET 0x9... |
free() to cJSON_free() | @@ -1041,7 +1041,7 @@ static void compose_patch(cJSON * const patches, const unsigned char * const ope
encode_string_as_pointer(full_path + path_length + 1, suffix);
cJSON_AddItemToObject(patch, "path", cJSON_CreateString((const char*)full_path));
- free(full_path);
+ cJSON_free(full_path);
}
if (value != NULL)
@@ -110... |
Add -fno-aligned-allocation to iOS compilation flags for compatibility with iOS 9 | @@ -40,7 +40,7 @@ endif(WIN32)
if(IOS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fobjc-arc -fmodules -fvisibility=hidden")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fobjc-arc -fmodules -stdlib=libc++ -std=c++17 -ftemplate-depth=1024 -fexceptions -frtti -fvisibility=hidden -fvisibility-inlines-hidden")
+ set(CMAKE_CXX_FLAGS... |
docs: ntpd -> chrony | @@ -6,7 +6,7 @@ issue the following:
% begin_ohpc_run
% ohpc_validation_comment Enable NTP services on SMS host
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true,keepspaces]
-[sms](*\#*) systemctl enable ntpd.service
+[sms](*\#*) systemctl enable chronyd.service
[sms](*\#*) echo "server ${ntp_s... |
fix two clang compile warnings with src/program.c | @@ -630,7 +630,7 @@ static int get_osl_read_access_position(osl_relation_list_p rl,
osl_relation_list_p tmp = rl;
for (; tmp; tmp = tmp->next) {
- if ( (tmp->elt->type == OSL_TYPE_READ) )
+ if (tmp->elt->type == OSL_TYPE_READ)
num++;
if(tmp->elt == access)
@@ -3432,7 +3432,7 @@ PlutoMatrix *pluto_stmt_get_remapping(con... |
count zeroed PMKIDs and print result in status | @@ -120,6 +120,7 @@ unsigned long long int pmkidcount;
unsigned long long int pmkidapcount;
unsigned long long int pmkidstacount;
unsigned long long int zeroedpmkcount;
+unsigned long long int zeroedpmkidcount;
pmkidl_t *pmkidliste;
@@ -699,9 +700,13 @@ if(eapolwpa2kv3framecount != 0)
{
printf("EAPOL packets (WPA2 keve... |
News: Move compatibility section | @@ -65,6 +65,16 @@ The following section lists news about the [modules](https://www.libelektra.org/
The text below summarizes updates to the [C (and C++) based interface](https://www.libelektra.org/libraries/readme) of Elektra.
+### Compatibility
+
+As always, the ABI and API of kdb.h is fully compatible, i.e. programs... |
added BEACON count (pwnagotchi) | @@ -130,6 +130,7 @@ static long int wdscount;
static long int beaconcount;
static long int beaconhcxcount;
static long int beaconerrorcount;
+static long int pagcount;
static long int proberesponsecount;
static long int proberequestcount;
static long int proberequestdirectedcount;
@@ -363,6 +364,7 @@ wdscount = 0;
beac... |
enable debug clang++ compilation in azure pipelines | @@ -81,6 +81,11 @@ jobs:
CXX: clang++
BuildType: secure-clang
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON
+ Debug++ Clang:
+ CC: clang
+ CXX: clang++
+ BuildType: debug-clang
+ cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON -DMI_USE_CXX=ON
steps:
- task: CMake@1
inputs:
|
Use ALLOCATE macro for initialisation | @@ -98,7 +98,7 @@ VM *initVM(bool repl, const char *scriptName, int argc, const char *argv[]) {
setupFilenameStack(vm, scriptName);
- vm->frames = GROW_ARRAY(vm, vm->frames, CallFrame, 0, vm->frameCapacity);
+ vm->frames = ALLOCATE(vm, CallFrame, vm->frameCapacity);
vm->initString = copyString(vm, "init", 4);
vm->replV... |
Fix codegen for deprecated goto calls | @@ -407,6 +407,7 @@ class ScriptBuilder {
options: ScriptBuilderOptions;
dependencies: string[];
nextLabel: number;
+ labelLookup: Record<string, string>;
actorIndex: number;
stackPtr: number;
labelStackSize: Dictionary<number>;
@@ -447,6 +448,7 @@ class ScriptBuilder {
};
this.dependencies = [];
this.nextLabel = 1;
+ ... |
Output usage per a review comment during a demo of versioning. | @@ -3415,6 +3415,16 @@ void
__scope_main(void)
{
printf("Scope Version: " SCOPE_VER "\n");
+
+ char buf[64];
+ if (snprintf(buf, sizeof(buf), "/proc/%d/exe", getpid()) == -1) exit(0);
+ char path[1024] = {0};
+ if (readlink(buf, path, sizeof(path)) == -1) exit(0);
+ printf("\n");
+ printf(" Usage: LD_PRELOAD=%s <comman... |
Remove unneeded libraries from prepareTestImage
These libraries are now included by ops | @@ -26,8 +26,6 @@ func prepareTestImage(finalImage string) {
writeFile(filepath)
c.BaseVolumeSz = "32M"
- c.Files = append(c.Files, "/lib/x86_64-linux-gnu/libnss_dns.so.2")
- c.Files = append(c.Files, "/etc/ssl/certs/ca-certificates.crt")
c.Files = append(c.Files, filepath)
c.Args = append(c.Args, "longargument")
|
rune/libenclave: Fix spelling mistakes in skeleton README.md. | @@ -11,7 +11,7 @@ Refer to [this guide](https://github.com/alibaba/inclavare-containers/tree/maste
```shell
cd "${path_to_inclavare_containers}/rune/libenclave/internal/runtime/pal/skeleton"
make
-cp liberpal-skeletion.so /usr/lib
+cp liberpal-skeleton.so /usr/lib
```
---
|
Only report turn tate < 10 min/turn on web UI. | @@ -154,8 +154,8 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
$scope.ahrs_gload = situation.AHRSGLoad.toFixed(2);
gMeter.update(situation.AHRSGLoad);
- if (situation.AHRSTurnRate> 0.25) {
- $scope.ahrs_turn_rate = (60/situation.AHRSTurnRate).toFixed(1); // minutes/turn
+ if (situation.AHRSTurnRat... |
Ensure binding numbers are less than 32;
We use u32 masks... | @@ -1121,6 +1121,8 @@ Shader* lovrShaderCreate(ShaderInfo* info) {
lovrThrow("Shader resource count exceeds resourcesPerShader limit (%d)", MAX_RESOURCES_PER_SHADER);
}
+ lovrCheck(resource->binding < 32, "Max resource binding number is %d", 32 - 1);
+
slots[index] = (gpu_slot) {
.number = resource->binding,
.type = re... |
Use _NSGetEnviron() on Apple | #include <dirent.h>
#include <sys/types.h>
#include <sys/wait.h>
+#ifdef JANET_APPLE
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#else
extern char **environ;
+#endif
#ifdef JANET_THREADS
#include <pthread.h>
#endif
|
router_readconfig: don't leak palloc on errors | @@ -1046,12 +1046,14 @@ router_readconfig(router *orig,
if ((buf = ra_malloc(palloc, st.st_size + 1)) == NULL) {
logerr("malloc failed for config file buffer\n");
+ ra_free(palloc);
router_free(ret);
return NULL;
}
if ((cnf = fopen(path, "r")) == NULL) {
logerr("failed to open config file '%s': %s\n", path, strerror(er... |
filter keys returned by kdb.get to ensure they are below root of query | @@ -172,20 +172,24 @@ def _remove_namespace_prefix(elektra_path):
#returns tuple of dirs, files of given path (does not include '.', '..')
def ls(os_path):
- #if os_path == "/":
- # return ({"user:", "system:", "spec:", "dir:", "/cascading:"}, [])
-
path = os_path_to_elektra_path(os_path)
+ root = kdb.Key(path)
is_root... |
doc: add known issue:5157 for building-from-source.rst
build with XML file, "TARGET_DIR=xxx" does not work | @@ -54,7 +54,9 @@ distribution. Refer to the :ref:`building-acrn-in-docker` user guide for
instructions on how to build ACRN using a container.
.. note::
- ACRN uses ``menuconfig``, a python3 text-based user interface (TUI) for configuring hypervisor options and using python's ``kconfiglib`` library.
+ ACRN uses ``menu... |
[mod_fastcgi] decode chunked is cold code path
decode chunked from FastCGI backend is cold code path | @@ -382,12 +382,11 @@ static void fastcgi_get_packet_body(buffer * const b, handler_ctx * const hctx,
buffer_string_set_length(b, blen + packet->len - packet->padding);
}
+__attribute_cold__
+__attribute_noinline__
static int
mod_fastcgi_chunk_decode_transfer_cqlen (request_st * const r, chunkqueue * const src, const u... |
engine: fix wrong HTTP_SERVER macro | @@ -457,7 +457,7 @@ int flb_engine_start(struct flb_config *config)
struct flb_sched *sched;
/* HTTP Server */
-#ifdef FLB_HAVE_HTTP
+#ifdef FLB_HAVE_HTTP_SERVER
if (config->http_server == FLB_TRUE) {
flb_http_server_start(config);
}
|
Added and enabled branch coverage support to pytest | @@ -193,6 +193,7 @@ def pytest_configure(config):
data_file=cov_prefix,
concurrency=['multiprocessing', 'thread'],
auto_data=True,
+ branch=True,
# debug=['pid', 'trace', 'sys', 'config'],
)
config.coverage = cov
|
publish: return JS number revision
fixes fixes | @@ -87,7 +87,7 @@ export function getLatestRevision(node: GraphNode): [number, string, string, Pos
return empty
}
const [title, body] = rev.post.contents as TextContent[];
- return [revNum, title.text, body.text, rev.post];
+ return [revNum.toJSNumber(), title.text, body.text, rev.post];
}
export function getComments(n... |
actually build webg | -all: hw web hwg
+all: hw web hwg webg
hwg: hwg.go
go build hwg.go
@@ -9,7 +9,10 @@ hw: hw.c
web: web.c
cc web.c -g -o web
+webg: webg.go
+ go build webg.go
+
clean:
- rm hw web hwg
+ rm hw web hwg webg
|
collections: loosen property access in unread marking
Fixes urbit/landscape#999 | @@ -46,8 +46,8 @@ export function LinkBlocks(props: LinkBlocksProps) {
);
useEffect(() => {
- const { unreads } = useHarkState
- .getState().unreads.graph?.[association.resource]?.['/'];
+ const unreads = useHarkState.getState()
+ .unreads.graph?.[association.resource]?.['/']?.unreads || new Set<string>();
Array.from((... |
Added png-response | ^- http-event:http
[%start [200 ['content-type' 'text/css']~] [~ oct-css] %.y]
::
+ ++ png-response
+ |= oct-png=octs
+ ^- http-event:http
+ [%start [200 ['content-type' 'image/png']~] [~ oct-png] %.y]
+ ::
+ ++ woff2-response
+ |= oct-woff=octs
+ ^- http-event:http
+ [%start [200 ['content-type' 'font/woff2']~] [~ oct... |
schema tree BUGFIX obsolete assert | @@ -723,7 +723,6 @@ lys_set_implemented(struct lys_module *mod, const char **features)
/* implement this module and any other required modules, recursively */
ret = lys_set_implemented_r(mod, features, &unres);
- assert(mod == unres.implementing.objs[0]);
/* the first module being implemented is finished, resolve globa... |
mangle: const-ize functions | @@ -64,22 +64,6 @@ static inline size_t mangle_getOffSet(run_t* run) {
return util_rndGet(0, run->dynamicFileSz - 1);
}
-static inline void mangle_Overwrite(
- run_t* run, size_t off, const uint8_t* src, size_t len, bool printable) {
- if (len == 0) {
- return;
- }
- size_t maxToCopy = run->dynamicFileSz - off;
- if (l... |
Improve error messages for unknown types; | @@ -141,6 +141,7 @@ void _luax_pushtype(lua_State* L, const char* type, uint64_t hash, void* object)
// Allocate userdata
Proxy* p = (Proxy*) lua_newuserdata(L, sizeof(Proxy));
luaL_getmetatable(L, type);
+ lovrAssert(lua_istable(L, -1), "Unknown type '%s' (maybe its module needs to be required)", type);
lua_setmetatab... |
stm32f4: fix PLL clock initialization
Fix setting HSI as main clock source in pre-configuration; it was
missing the PLLState configuration which would result in random
behavior. | @@ -64,14 +64,13 @@ SystemClock_Config(void)
/*
* Configure HSI as PLL source; this avoids an error reconfiguring the
- * PLL when it is already set has the system clock source.
+ * PLL when it is already set as the system clock source.
*/
osc_init.OscillatorType = RCC_OSCILLATORTYPE_HSI;
osc_init.HSIState = RCC_HSI_ON... |
VERSION bump to version 1.0.0 | @@ -31,12 +31,23 @@ set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
-# set version
-set(LIBNETCONF2_MAJOR_VERSION 0)
-set(LIBNETCONF2_MINOR_VERSION 12)
-set(LIBNETCONF2_MICRO_VERSION 55)
+# Version of the project
+# Generic version of not only the... |
Send Server-Start in a single TCP message
Optimise the sending of the Server-Start command by sending all 48
bytes in a single message.
This improves compatibility with clients which expect the command to
be sent in a single message, and also makes better use of the network
resources. | @@ -331,17 +331,11 @@ _OWPWriteServerStart(
}
/*
- * Write first two blocks of message - not encrypted
+ * Set first two blocks of message - not encrypted
*/
memset(&buf[0],0,15);
*(uint8_t *)&buf[15] = code & 0xff;
memcpy(&buf[16],cntrl->writeIV,16);
- if((len = I2Writeni(cntrl->sockfd,buf,32,intr)) != 32){
- if((len ... |
board/kinox/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -242,8 +242,7 @@ static int command_led(int argc, char **argv)
}
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(led, command_led,
- "[debug|red|green|off|alert|crit]",
+DECLARE_CONSOLE_COMMAND(led, command_led, "[debug|red|green|off|alert|crit]",
"Turn on/off LED.");
void led_get_brightness_range(enum ec_led_id led_i... |
windows sample readme update | @@ -159,9 +159,9 @@ For Windows, the command line examples are based on PowerShell. While Windows d
In this example, it is "2A1B236A3839A2D8070E9A0EE21C9E1488DDBA7E".
It will be used to create the logical device on your Azure IoT Hub.
-4. Download the [Baltimore PEM CA](https://cacerts.digicert.com/BaltimoreCyberTrustR... |
Fix lovr.graphics.line(nil); | @@ -243,7 +243,9 @@ static uint32_t luax_getvertexcount(lua_State* L, int index) {
return tableType == LUA_TNUMBER ? count / 3 : count;
} else if (type == LUA_TNUMBER) {
return (lua_gettop(L) - index + 1) / 3;
- } else {
+ } else if (type == LUA_TNONE || type == LUA_TNIL) {
+ return 0;
+ } else { // vec3
return lua_get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.