message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
support splitting for jstyle tests | @@ -450,6 +450,8 @@ def onadd_check(unit, *args):
test_dir = unit.resolve(os.path.join(unit.path()))
test_timeout = ''
+ fork_mode = ''
+
if check_type in ["PEP8", "PYFLAKES", "PY_FLAKES", "PEP8_2", "PYFLAKES_2"]:
script_rel_path = "py.lint.pylint"
elif check_type in ["PEP8_3", "PYFLAKES_3"]:
@@ -468,6 +470,7 @@ def on... |
Don't warn on missing field initializers | @@ -40,7 +40,7 @@ export REDIS_TEST_CONFIG
CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++')
OPTIMIZATION?=-O3
-WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
+WARNINGS=-Wall -W -Wstrict-p... |
doc: remove duplicate release note entries | @@ -180,11 +180,6 @@ you up to date with the multi-language support provided by Elektra.
- Improved documentation for module keymeta in Elektra Core. _(@lawli3t)_
- Improved documentation for module keytest in Elektra Core. _(@lawli3t)_
- Improved documentation for module keyset in Elektra Core. _(@lawli3t)_
-- Improve... |
[TCE] disable fp16/loopvec
It's too fragile, needs to be figured out why it works sometimes and
somtimes not. | @@ -42,20 +42,20 @@ set_tests_properties( "tce/fp16/repl"
ENVIRONMENT "POCL_DEVICES=ttasim;POCL_TTASIM0_PARAMETERS=${CMAKE_SOURCE_DIR}/tools/data/test_machine_fp16.adf;POCL_WORK_GROUP_METHOD=repl"
DEPENDS "pocl_version_check")
-add_test_pocl(NAME "tce/fp16/loopvec" COMMAND "fp16_host" EXPECTED_OUTPUT "expected_out.txt"... |
sort output from repoquery | @@ -18,9 +18,9 @@ if [ -e /etc/redhat-release ];then
# query repo for ohpc packages
if [ -z "$skip" ];then
- repoquery -qa $options --queryformat='%{Name} %{Version} %{URL} %{Group} %{Summary}\n' | grep -e "-ohpc\b" >> ${logfile}.all
+ repoquery -qa $options --queryformat='%{Name} %{Version} %{URL} %{Group} %{Summary}\... |
in_tail: initialize mult_parsers list before parsing properties
if not initialized, any error during the parsing of options will cause
the *mult_destroy function to segfault. | @@ -57,6 +57,8 @@ int flb_tail_mult_create(struct flb_tail_config *ctx,
ctx->multiline_flush = 1;
}
+ mk_list_init(&ctx->mult_parsers);
+
/* Get firstline parser */
tmp = flb_input_get_property("parser_firstline", ins);
if (!tmp) {
@@ -70,7 +72,6 @@ int flb_tail_mult_create(struct flb_tail_config *ctx,
}
ctx->mult_pars... |
Fix cube winding; | @@ -779,32 +779,32 @@ void lovrGraphicsBox(DrawMode mode, Material* material, mat4 transform) {
float data[] = {
// Front
-.5, -.5, -.5, 0, 0, -1, 0, 0,
- .5, -.5, -.5, 0, 0, -1, 1, 0,
-.5, .5, -.5, 0, 0, -1, 0, 1,
+ .5, -.5, -.5, 0, 0, -1, 1, 0,
.5, .5, -.5, 0, 0, -1, 1, 1,
// Right
.5, .5, -.5, 1, 0, 0, 0, 1,
- .5, -... |
added more typecheck tests for ipairs | @@ -366,7 +366,7 @@ describe("Pallene type checker", function()
]], "missing control variable in for-in loop")
end)
- it("checks the arguments of ipairs.", function()
+ it("checks loops with ipairs.", function()
assert_error([[
export function fn()
for i: integer in ipairs() do
@@ -382,6 +382,22 @@ describe("Pallene ty... |
utils: fix log format specifier (CID 304433) | @@ -154,7 +154,7 @@ int flb_utils_set_daemon(struct flb_config *config)
}
/* Our last STDOUT messages */
- flb_info("switching to background mode (PID=%lu)", getpid());
+ flb_info("switching to background mode (PID=%ld)", (long) getpid());
fclose(stderr);
fclose(stdout);
|
vlib: Fix packet tracing
Type: fix
Fixes: | @@ -145,7 +145,7 @@ vlib_trace_buffer (vlib_main_t * vm,
(struct vlib_trace_main_t *) tm);
}
- //vlib_trace_next_frame (vm, r, next_index);
+ vlib_trace_next_frame (vm, r, next_index);
pool_get (tm->trace_buffer_pool, h);
|
DESERIALIZER: Small bugfix in the deser_process() | @@ -443,7 +443,8 @@ static int deser_process(const OSSL_PARAM params[], void *arg)
* that's the case, we do this extra check.
*/
if (deser == NULL && ctx->start_input_type != NULL
- && strcasecmp(ctx->start_input_type, deser_inst->input_type) != 0)
+ && strcasecmp(ctx->start_input_type,
+ new_deser_inst->input_type) !=... |
SOVERSION bump to version 7.11.12 | @@ -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 11)
+set(SYSREPO_MICRO_... |
BugID:18959339: canopen coponent aos.mk should add version and summary info | @@ -2,6 +2,8 @@ NAME := canopen
ifeq ($(CANOPEN),canfestival)
$(NAME)_MBINS_TYPE := kernel
+$(NAME)_VERSION := 3.0
+$(NAME)_SUMMARY := canfestival canopen stack
$(NAME)_SOURCES := src/dcf.c
$(NAME)_SOURCES += src/emcy.c
|
Cirrus: Install `checkbashisms` on macOS | @@ -73,6 +73,8 @@ mac_task:
yaep
yajl
yaml-cpp
+ - > # Try to install `checkbashisms` (The file server that hosts the package is unfortunately quite unreliable.)
+ brew install checkbashisms || >&2 printf 'Warning: Unable to install `checkbashims`\n'
- > # Start D-Bus session bus
brew services start dbus
- | # Install ... |
generate vdso-offset.h as a dependency for unix_machine.o, add to CLEANFILES | @@ -184,7 +184,7 @@ VDSO_DEPS= $(patsubst %.o,%.d,$(VDSO_OBJS))
OBJDUMPFLAGS= -d -S
DEPFILES+= $(VDSO_DEPS)
-CLEANFILES+= $(foreach f,gitversion.c frame.inc kernel.dis kernel.elf bin/kernel.img src/unix/ftrace.* $(ARCHDIR)/ftrace.*,$(OBJDIR)/$f) $(VDSO_OBJDIR)/vdso.so $(VDSO_OBJDIR)/vdso-image.c $(VDSO_OBJS) $(VDSO_DEP... |
Fix few cases where annotation was not properly applied | @@ -51,6 +51,9 @@ SHARED_PTR_TEMPLATE = """
"""
POLYMORPHIC_SHARED_PTR_TEMPLATE = SHARED_PTR_TEMPLATE + """
+%pragma(java) jniclassclassmodifiers="@com.carto.utils.DontObfuscate public class"
+%typemap(javaclassmodifiers) $CLASSNAME$ "@com.carto.utils.DontObfuscate public class"
+
%{
#include "components/ClassRegistry.... |
groups: remove fixed height from s3 error portal | @@ -167,7 +167,6 @@ export const ChatInput = React.forwardRef(
boxShadow="0px 0px 0px 3px"
zIndex={3}
fontSize={0}
- height="75px"
width="250px"
padding={3}
justifyContent="center"
|
Added files for show-cap and delete-pcd to list of items to be built | @@ -659,11 +659,13 @@ if((ASCIIDOCTOR_FOUND OR A2X_FOUND) AND LNX_BUILD)
${ROOT}/Documentation/ipmctl/Support_and_Maintenance/ipmctl-dump-support-data.txt
${ROOT}/Documentation/ipmctl/Support_and_Maintenance/ipmctl-help.txt
${ROOT}/Documentation/ipmctl/Support_and_Maintenance/ipmctl-modify-device.txt
+ ${ROOT}/Document... |
fix to use dcs_end_size with dcs_start
use dcs_start_size instead of dcs_end_size. | @@ -64,7 +64,7 @@ sixel_penetrate(
- dcs_start_size - dcs_end_size;
for (pos = 0; pos < nwrite; pos += splitsize) {
- output->fn_write((char *)dcs_start, dcs_end_size, output->priv);
+ output->fn_write((char *)dcs_start, dcs_start_size, output->priv);
output->fn_write(((char *)output->buffer) + pos,
nwrite - pos < spli... |
Docs: Add just another CPU PM entry to the sample
closes | @@ -15,6 +15,7 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "CpuPlug", 0x00003000)
External (_SB_.PR00, DeviceObj)
External (_PR_.PR00, DeviceObj)
External (_SB_.SCK0.CP00, DeviceObj)
+ External (_SB_.SCK0.PR00, DeviceObj)
If (CondRefOf (\_SB.CPU0)) {
Scope (\_SB.CPU0) {
@@ -90,4 +91,19 @@ DefinitionBlock ("", "SSDT", 2,... |
HV: change wake vector to accommodate abl 1820HF1release
MRB bootloader is switched to ABL ver 1820HF1_release, so change platform
acpi info accordingly to support system S3.
Acked-by: Eddie Dong | @@ -52,8 +52,8 @@ const struct acpi_info host_acpi_info = {
.wake_vector_32 = (uint32_t *)0x7A86BBDCUL,
.wake_vector_64 = (uint64_t *)0x7A86BBE8UL
#else
- .wake_vector_32 = (uint32_t *)0x7AEDCEFCUL,
- .wake_vector_64 = (uint64_t *)0x7AEDCF08UL
+ .wake_vector_32 = (uint32_t *)0x7AFDCEFCUL,
+ .wake_vector_64 = (uint64_t ... |
Move stage-packages into main part. | @@ -36,7 +36,7 @@ parts:
plugin: autotools
configflags: [--with-name-prefix=]
source: .
+ stage-packages: [libavahi-client]
build-packages: [cura-engine, libavahi-client-dev, libgnutls28-dev, libjpeg-dev, libmupdf-dev, libopenjp2-7-dev, libpng-dev, zlib1g-dev]
-stage-packages: [libavahi-client]
|
lacp: correctly set is_mp_safe for VL_API_SW_INTERFACE_LACP_DUMP
Need to add msg_id_base to the index
Type: fix | @@ -125,8 +125,7 @@ lacp_plugin_api_hookup (vlib_main_t * vm)
lm->msg_id_base = setup_message_id_table ();
/* Mark these APIs as mp safe */
- am->is_mp_safe[VL_API_SW_INTERFACE_LACP_DUMP] = 1;
- am->is_mp_safe[VL_API_SW_INTERFACE_LACP_DETAILS] = 1;
+ am->is_mp_safe[lm->msg_id_base + VL_API_SW_INTERFACE_LACP_DUMP] = 1;
... |
Fix shlibloadtest to properly execute the dso_ref test | @@ -121,6 +121,7 @@ static int test_lib(void)
switch (test_type) {
case JUST_CRYPTO:
+ case DSO_REFTEST:
if (!TEST_true(shlib_load(path_crypto, &cryptolib)))
goto end;
break;
@@ -134,10 +135,6 @@ static int test_lib(void)
|| !TEST_true(shlib_load(path_crypto, &cryptolib)))
goto end;
break;
- case DSO_REFTEST:
- if (!TE... |
mispec: don't use %f
The additional reporting, while nice, prevents the use of mispec on
integer-only builds | @@ -117,8 +117,8 @@ M.runNextPending = function()
M.succeeded = M.total - M.failed
local elapsedSeconds = (tmr.now() - M.startTime) / 1000 / 1000
print(string.format(
- '\n\nCompleted in %.2f seconds.\nSuccess rate is %.1f%% (%d failed out of %d).',
- elapsedSeconds, 100 * M.succeeded / M.total, M.failed, M.total))
+ '... |
Fix horizontal offsetting regression | @@ -323,7 +323,7 @@ namespace carto {
double n = std::floor((mapPos.getX() + Const::HALF_WORLD_SIZE) / Const::WORLD_SIZE);
if (n != 0) {
mapPos.setX(mapPos.getX() - n * Const::WORLD_SIZE);
- _horizontalLayerOffsetDir = static_cast<int>(n);
+ _horizontalLayerOffsetDir = -static_cast<int>(n);
cameraChanged();
}
|
options/linux: These ptrace constants are abi specific, grab them from an abi-bits header | #ifndef _SYS_PTRACE_H
#define _SYS_PTRACE_H
+#include <abi-bits/ptrace.h>
#include <stdint.h>
#define PTRACE_TRACEME 0
#define PT_TRACE_ME PTRACE_TRACEME
-#define PTRACE_PEEKTEXT 1
-#define PTRACE_PEEKDATA 2
-#define PTRACE_PEEKUSER 3
-#define PTRACE_POKETEXT 4
-#define PTRACE_POKEDATA 5
-#define PTRACE_CONT 7
-#define... |
scripts: fix reformat-c for newer clang-format version strings | @@ -15,7 +15,7 @@ CLANG_FORMAT=$(command -v clang-format-$REQUIRED_VERSION || command -v clang-for
if [ -n "$CLANG_FORMAT" ]; then
LOCATION="$CLANG_FORMAT"
VERSION=$("$CLANG_FORMAT" --version 2> /dev/null)
- MAJOR_VERSION=$(printf '%s' "$VERSION" | sed -E 's/.* ([0-9]+)\.[0-9].[0-9][ -].*/\1/')
+ MAJOR_VERSION=$(printf... |
Refactor sched_gettcb tc
Add waitpid to make sure that child task should be terminated after sched_gettcb tc | @@ -325,14 +325,18 @@ static void tc_sched_waitpid(void)
*/
static void tc_sched_sched_gettcb(void)
{
- struct tcb_s *st_tcb;
- pid_t child_pid;
- child_pid = task_create("tc_gettcb", SCHED_PRIORITY_DEFAULT, CONFIG_USERMAIN_STACKSIZE, function_wait, (char * const *)NULL);
- st_tcb = sched_gettcb(child_pid);
+ struct tc... |
Document the long removed OPAL_REGISTER_OPAL_EXCEPTION_HANDLER call
I'm pretty sure this was removed in one of our first ever service packs.
Fixes: | @@ -61,7 +61,7 @@ The OPAL API is the interface between an Operating System and OPAL.
| :ref:`OPAL_GET_COMPLETION_TOKEN_STATUS` | 21 | Never | | Never |
| | | | | Implemented |
+---------------------------------------------+--------------+------------------------+----------+-----------------+
-| :ref:`OPAL_REGISTER_OPA... |
config: initialize ref to storage input plugin | @@ -120,11 +120,7 @@ struct flb_config *flb_config_init()
/* Flush */
config->flush = FLB_CONFIG_FLUSH_SECS;
-#if defined FLB_HAVE_FLUSH_PTHREADS
- config->flush_method = FLB_FLUSH_PTHREADS;
-#elif defined FLB_HAVE_FLUSH_LIBCO
config->flush_method = FLB_FLUSH_LIBCO;
-#endif
config->daemon = FLB_FALSE;
config->init_time... |
Install C/C++ libraries in TravisCI. | @@ -27,8 +27,11 @@ install:
script:
- if [ "$TRAVIS_OS_NAME" == "windows" ] && [ "$CC" == "gcc" ]; then cmake -G "Visual Studio 15 2017" -A Win32 .; fi;
- if [ "$TRAVIS_OS_NAME" == "windows" ] && [ "$CC" == "clang" ]; then cmake -G "Visual Studio 15 2017" -A x64 .; fi;
+ - if [ "$TRAVIS_OS_NAME" == "windows" ]; then cm... |
Use OPENSSL_secure_clear_free in STORE file_load | @@ -1037,10 +1037,10 @@ static OSSL_STORE_INFO *file_load_try_repeat(OSSL_STORE_LOADER_CTX *ctx,
return result;
}
-static void pem_free_flag(void *pem_data, int secure)
+static void pem_free_flag(void *pem_data, int secure, size_t num)
{
if (secure)
- OPENSSL_secure_free(pem_data);
+ OPENSSL_secure_clear_free(pem_data,... |
bin: new storage path option -b/--storage_path | @@ -121,7 +121,7 @@ static void flb_help(int rc, struct flb_config *config)
printf("Usage: fluent-bit [OPTION]\n\n");
printf("%sAvailable Options%s\n", ANSI_BOLD, ANSI_RESET);
- printf(" -b --buf_path=PATH\tspecify a buffering path\n");
+ printf(" -b --storage_path=PATH\tspecify a storage buffering path\n");
printf(" -... |
bump urbit version number to 0.7.3 | @@ -236,7 +236,7 @@ endforeach
incdir = include_directories('include/')
conf_data = configuration_data()
-conf_data.set('URBIT_VERSION', '"0.7.2"')
+conf_data.set('URBIT_VERSION', '"0.7.3"')
conf_data.set('U3_MEMORY_DEBUG', get_option('gc'))
conf_data.set('U3_CPU_DEBUG', get_option('prof'))
conf_data.set('U3_EVENT_TIME... |
The libacvp metadata query is working! | @@ -1081,7 +1081,7 @@ static ACVP_RESULT compare_phone_numbers(ACVP_OE_PHONE_LIST *phone_list,
tmp_ptr = phone_list;
while (tmp_ptr) {
phone_list_len++;
- tmp_ptr = phone_list->next;
+ tmp_ptr = tmp_ptr->next;
}
if (phone_list_len != json_array_get_count(candidate_phones)) {
@@ -2277,11 +2277,11 @@ static ACVP_RESULT a... |
Update README.md
Replaced broken link. | @@ -57,7 +57,7 @@ Themis is open source, Apache 2 Licensed.
4. Type 'make install' and you're done (in most of the cases).
5. Visit [our wiki](https://github.com/cossacklabs/themis/wiki) for the documentation specific to your language of choice and take a look at docs/examples for examples.
-It is a really good idea to... |
[io] vview: first draft ok without contact forces | @@ -799,19 +799,24 @@ class IOReader(VTKPythonAlgorithmBase):
t = info.Get(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP())
id_t = numpy.searchsorted(self._times, t, side='right') - 1
+ if id_t < len(self._indices)-1:
self._id_t_m = range(self._indices[id_t],
- self._indices[min(id_t+1, len(self._indices)-1)])
... |
fix cook error. | (print cmd)
(def res (os/shell cmd))
(unless (zero? res)
- (error "command exited with status " res)))
+ (error (string "command exited with status " res))))
(defn- rm
"Remove a directory and all sub directories."
|
replay most recent event too | @@ -953,10 +953,12 @@ _sist_rest()
u3A->ent_d = c3_max(las_d + 1ULL, old_d);
}
- if ( cur_d == u3Z->lug_u.len_d ) {
+ if ( u3A->ent_d == old_d ) {
// Nothing in the log that was not also in the checkpoint.
//
- c3_assert(u3A->ent_d == old_d);
+ // XX: reinstate this assertion
+ //
+ //c3_assert ( cur_d == u3Z->lug_u.le... |
runtime: bug fix for kthread detaching | @@ -146,6 +146,13 @@ static bool steal_work(struct kthread *l, struct kthread *r)
if (th)
l->rq[l->rq_head++] = th;
+ else if (l->rq_head != l->rq_tail) {
+ /* handle the case where net_run -> kthread_detach -> rcu_detach
+ * leads to a thread being added to the runqueue (but not returned
+ * here) */
+ th = l->rq[l->r... |
Add PhGetThreadIsIoPending | @@ -982,6 +982,32 @@ PhSetThreadBreakOnTermination(
);
}
+FORCEINLINE
+NTSTATUS
+PhGetThreadIsIoPending(
+ _In_ HANDLE ThreadHandle,
+ _Out_ PBOOLEAN IsIoPending
+ )
+{
+ NTSTATUS status;
+ ULONG isIoPending;
+
+ status = NtQueryInformationThread(
+ ThreadHandle,
+ ThreadIsIoPending,
+ &isIoPending,
+ sizeof(ULONG),
+ ... |
libnet: don't install arp cache entries for IP 0.0.0.0 | @@ -73,6 +73,11 @@ struct netif *arp_filter_netif(struct pbuf *p, struct netif *netif, uint16_t typ
ip_addr_t ip;
IPADDR2_COPY(&ip, &hdr->sipaddr);
+ /* don't store any IPs */
+ if (ip_addr_cmp(&st->netif.ip_addr, IP_ADDR_ANY)) {
+ return netif;
+ }
+
uint64_t hwaddr = 0;
if (etharp_find_addr(netif, &ip, (struct eth_ad... |
Add assert to prevent global being set by MIR | @@ -1543,6 +1543,7 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
if (expandBoundingBox) {
int e = grib_set_long(outh, "expandedBoundingBox", 1);
Assert(e == 0);
+ Assert(!global_grid); /* ECC-576: "global" should not be set */
}
if ( (*err = check_geometry(outh, spec, data_values_count, global_grid)) != GRIB_SUCC... |
travis: cut some log verbosity
just the tar bits. | @@ -11,7 +11,7 @@ compiler:
install:
- sudo apt-get update -y
- sudo apt-get install -y build-essential automake1.11 autoconf libevent-dev libseccomp-dev git tar wget libio-socket-ssl-perl
- - wget https://www.openssl.org/source/openssl-1.1.0g.tar.gz && tar xzvf openssl-1.1.0g.tar.gz
+ - wget https://www.openssl.org/so... |
sse4.1: add NEON implementation of _mm_extract_epi8
This commit includes a fix when the selector is greater than 15. | @@ -497,10 +497,12 @@ simde_mm_dp_ps (simde__m128 a, simde__m128 b, const int imm8) {
SIMDE__FUNCTION_ATTRIBUTES
int32_t
simde_mm_extract_epi8 (simde__m128i a, const int imm8) {
- return a.u8[imm8];
+ return a.u8[imm8&15];
}
#if defined(SIMDE_SSE4_1_NATIVE) && !defined(SIMDE_BUG_GCC_BAD_MM_EXTRACT_EPI8)
# define simde_... |
dojo: add missing nu-sole-id compatability
Forgotten code. | ::
++ on-arvo
|= [=wire =sign-arvo]
- ?> ?=([@ *] wire)
- =/ =session (~(got by hoc) i.wire)
- =/ he-full ~(. he hid i.wire ~ session)
+ ^- (quip card:agent:gall _..on-init)
+ ?> ?=([@ @ *] wire)
+ =/ =id [(slav %p i.wire) i.t.wire]
+ =/ =session (~(got by hoc) id)
+ =/ he-full ~(. he hid id ~ session)
=^ moves state
=... |
libhfcommon: use map_hassemaphore | @@ -392,6 +392,10 @@ uint8_t* files_mapFileShared(const char* fileName, off_t* fileSz, int* fd) {
*/
mmapflags |= MAP_NOSYNC;
#endif /* defined(MAP_NOSYNC) */
+#if defined(MAP_HASSEMAPHORE)
+ /* We use mutexes, so.. */
+ mmapflags |= MAP_HASSEMAPHORE;
+#endif /* defined(MAP_HASSEMAPHORE) */
if ((buf = mmap(NULL, st.st_... |
Experimental HFile object should raise AttributeError if fileno is unavailable | @@ -94,7 +94,7 @@ cdef class HFile(object):
if isinstance(self.name, int):
return self.name
else:
- raise OSError('fileno not available')
+ raise AttributeError('fileno not available')
def __enter__(self):
return self
|
check for either vmlinuz or vmlinux.gz | --- a/bin/wwbootstrap 2017-10-10 13:17:14.000000000 -0700
-+++ b/bin/wwbootstrap 2017-10-10 13:54:07.000000000 -0700
++++ b/bin/wwbootstrap 2017-10-10 14:24:24.000000000 -0700
+@@ -153,8 +153,8 @@
+
+ mkpath("$tmpdir/initramfs");
+
+-if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion") {
+- &eprint("Can't locate the boot... |
Fix missing break in AUC creation for GPU | @@ -550,6 +550,7 @@ namespace NCatboostCuda {
result.emplace_back(new TCpuFallbackMetric(MakeMultiClassAucMetric(metricType, params, i), metricDescription));
}
}
+ break;
}
case ELossFunction::Kappa: {
if (approxDim == 1) {
|
Added return code handling to setting system date/time and timezone | @@ -1730,17 +1730,17 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp)
queSaveDb(DB_CONFIG, DB_SHORT_SAVE_DELAY);
changed = true;
#ifdef ARCH_ARM
-#ifdef Q_OS_LINUX
- //set timezone under gnu linux
- //command = "echo '" + timezone.toStdString() + "' | sudo tee /etc/timezone";
- //system... |
Zephyr: herobrine: Remove display.dts from variant
Remove display.dts from Villager and hoglin.
BRANCH=none
TEST=zmake testall | @@ -13,7 +13,6 @@ def register_variant(project_name, extra_dts_overlays=(), extra_kconfig_files=()
dts_overlays=[
# Common to all projects.
here / "adc.dts",
- here / "display.dts",
here / "common.dts",
here / "i2c.dts",
here / "interrupts.dts",
@@ -34,6 +33,7 @@ def register_variant(project_name, extra_dts_overlays=()... |
pac_hssi_config: use constants and a dictionary.
Use the predefined constants for nios soft functions, and
use a dictionary to map a parameter integer to a string in
order to cleanup duplicate code. | @@ -888,29 +888,25 @@ def eeprom_fxn(args, skl):
print ""
+PARAMS_DICT = {
+ 0: "CTLE",
+ 1: "VGA",
+ 2: "DCGAIN",
+ 3: "1st POST",
+ 4: "2nd POST",
+ 5: "1st PRE",
+ 6: "2nd PRE",
+ 7: "VOD"
+}
+
+
def eqwrite_fxn(args, skl):
chan = int(args.channel, 16)
param = int(args.parameter, 16)
value = int(args.value, 16)
- va... |
travis.yml: add arch s390x target | @@ -36,6 +36,10 @@ matrix:
arch: arm64
compiler: gcc
env: CONFIG_OPTS="--strict-warnings"
+ - os: linux
+ arch: s390x
+ compiler: gcc
+ env: CONFIG_OPTS="--strict-warnings"
- os: linux-ppc64le
sudo: false
compiler: clang
|
log test exception as soon as possible to make logs better
issue:DEVTOOLS-5100 | @@ -471,6 +471,8 @@ def pytest_runtest_makereport(item, call):
longrepr = item._repr_failure_py(excinfo, style=item.config.option.tbstyle)
for rwhen, key, content in item._report_sections:
sections.append(("Captured std%s %s" % (key, rwhen), content))
+ if outcome == "failed":
+ yatest_logger.error(longrepr)
return _py... |
some code outline filter optimizations | @@ -1246,21 +1246,18 @@ static void updateSidebarCode(Code* code)
updateEditor(code);
}
-static bool isFilterMatch(const char* buffer, const char* filter)
+static bool isFilterMatch(const char* buffer, s32 size, const char* filter)
{
- while(*buffer)
- {
- if(tolower(*buffer) == tolower(*filter))
+ while(size--)
+ if(t... |
fix cuda ccbin auto-detection on windows | @@ -28,7 +28,7 @@ toolchain("cuda")
-- set toolset
set_toolset("cu", "nvcc", "clang")
set_toolset("culd", "nvcc")
- set_toolset("cu-ccbin", "$(env CXX)", "$(env CC)", "clang", "gcc")
+ set_toolset("cu-ccbin", "$(env CXX)", "$(env CC)")
-- bind msvc environments, because nvcc will call cl.exe
on_load(function (toolchain... |
Flesh out channel_depth_spec | RSpec.describe Magick::Image, "#channel_depth" do
- it "works" do
- image = described_class.new(20, 20)
-
- expect { image.channel_depth }.not_to raise_error
- expect { image.channel_depth(Magick::RedChannel) }.not_to raise_error
- expect { image.channel_depth(Magick::RedChannel, Magick::BlueChannel) }.not_to raise_err... |
libhfnetdriver: correct number of arguments for libfuzzer | @@ -218,7 +218,7 @@ __attribute__((weak)) int HonggfuzzNetDriverArgsForServer(
if (strcmp(argv[i], "--") == 0) {
*server_argc = argc - i;
*server_argv = &argv[i];
- return argc - i;
+ return i;
}
}
|
bugfix: variable missing in assign_test | @@ -26,9 +26,9 @@ assign_test:
artifacts:
paths:
- components/idf_test/*/CIConfigs
- - $EXAMPLE_CONFIG_OUTPUT_PATH
- - $TEST_APP_CONFIG_OUTPUT_PATH
- - $COMPONENT_UT_CONFIG_OUTPUT_PATH
+ - $EXAMPLE_TEST_DIR/test_configs
+ - $CUSTOM_TEST_DIR/test_configs
+ - $COMPONENT_UT_OUTPUT_DIR/test_configs
- build_examples/artifac... |
BugID:18631099:add esp32sram for 2 core;esp32devkitc no sram;dir kernel | extern int vfs_init(void);
extern int vfs_device_init(void);
+#ifdef AOS_LOOP
+#include "aos/yloop.h"
+extern aos_loop_t aos_loop_init(void);
+#endif
extern int aos_kv_init(void);
extern void ota_service_init(void);
extern void dumpsys_cli_init(void);
|
test dtls only for FreeBSD | @@ -41,10 +41,14 @@ if [ "$unamestr" != "Linux" ]; then
runtest "../examples/tneat" "-L"
fi
+if [ "$unamestr" == "FreeBSD" ]; then
+ retcode=0
+ runtest "../examples/tneat" "-v" "1" "-P" "../examples/prop_sctp_dtls.json" "interop.fh-muenster.de"
+fi
+
if [ "$unamestr" == "Linux" ] || [ "$unamestr" == "FreeBSD" ]; then
... |
docs(README): add INTERNALS.md under links section | @@ -192,11 +192,12 @@ $ valgrind ./myBot.out
## Links
+- [Discord Server](https://discord.gg/2jfycwXVM3)
- [Documentation](https://cee-studio.github.io/orca/)
- [Building your first bot](docs/BUILDING_A_BOT.md)
-- [Contributing](docs/CONTRIBUTING.md)
-- [Discord Server](https://discord.gg/2jfycwXVM3)
- [Debbuging with ... |
correct gyro rotation tmotorf7 | #define GYRO_SPI_PORT SPI_PORT1
#define GYRO_NSS PIN_A4
#define GYRO_INT PIN_C4
-#define SENSOR_ROTATE_90_CCW
+#define SENSOR_ROTATE_90_CW
#define GYRO_ID_1 0x68
#define GYRO_ID_2 0x73
#define GYRO_ID_3 0x78
|
Don't block main thread while checking for Python executables | @@ -195,7 +195,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate, SyntaxTextVi
}
private func pythonExecutableMenuWillOpen(_ menu: NSMenu) {
-
+ DispatchQueue.global().async {
var executables = [String : URL]()
let bundledPythonPipe = Pipe()
@@ -275,11 +275,12 @@ class AppDelegate: NSObject, NSApp... |
move from DDR3/4_USED to SDRAM_USED | done
done
done
- if [[ "$DDR3_USED" == "TRUE" || "$DDR4_USED" == "TRUE" ]];then echo -e "$del\ntesting DDR"
+ if [[ "$DDR3_USED" == "TRUE" || "$DDR4_USED" == "TRUE" || "$SDRAM_USED" == "TRUE" ]]; then echo -e "$del\ntesting DDR"
for num64 in 1 5 63 64;do # 1..64
for align in 4096 1024 256 64; do # must be mult of 64
fo... |
[protobuf] revert "print bytes as string" patch | @@ -2475,7 +2475,7 @@ void TextFormat::Printer::PrintFieldValue(const Message& message,
printer->PrintString(*value_to_print, generator);
} else {
GOOGLE_DCHECK_EQ(field->type(), FieldDescriptor::TYPE_BYTES);
- printer->PrintString(*value_to_print, generator);
+ printer->PrintBytes(*value_to_print, generator);
}
break;... |
Correctly demangle lambdas with multiple params.
Previously only the last argument was retained. | @@ -6923,13 +6923,7 @@ __demangle_tree::__parse_unnamed_type_name(const char* first, const char* last)
}
else
{
- while (first[0] && first[0] != 'E')
- {
- const char *old = first;
- first = __parse_type(first, last);
- if (first == old)
- break;
- }
+ first = __parse_bare_function_type(first, last);
if (first[0] == 'E... |
remove cmake options CMAKE_C_COMPILER CMAKE_CXX_COMPILER, and LLVM_ENABLE_ASSERTIONS | @@ -72,7 +72,7 @@ fi
COMPILERS="-DCMAKE_C_COMPILER=$GCCLOC -DCMAKE_CXX_COMPILER=$GXXLOC"
GFXSEMICOLONS=`echo $GFXLIST | tr ' ' ';' `
-MYCMAKEOPTS="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=$AOMP_INSTALL_DIR/lib:$AOMP_INSTALL_DIR/hcc/lib -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_H... |
Add shortcut for small-size gemv_n with increments of one | @@ -202,6 +202,11 @@ void CNAME(enum CBLAS_ORDER order,
if (alpha == ZERO) return;
+ if (trans == 0 && incx == 1 && incy == 1 && m*n < 2304 *GEMM_MULTITHREAD_THRESHOLD) {
+ GEMV_N(m, n, 0, alpha, a, lda, x, incx, y, incy, buffer);
+ return;
+ }
+
IDEBUG_START;
FUNCTION_PROFILE_START();
|
volteer: Remove DisplayPort HPD GPIOs
This function is already handled by the AP's internal mux, and the GPIOs
were already unused.
TEST=make buildall
BRANCH=none | @@ -141,10 +141,6 @@ GPIO(EC_I2C7_EEPROM_SDA, PIN(B, 2), GPIO_INPUT)
/* Battery signals */
GPIO(EC_BATT_PRES_ODL, PIN(E, 1), GPIO_INPUT)
-/* Physical HPD pins are not needed on EC as these are configured by PMC */
-GPIO(USB_C0_DP_HPD, PIN(F, 3), GPIO_INPUT)
-GPIO(USB_C1_DP_HPD, PIN(7, 0), GPIO_INPUT)
-
/* Alternate fun... |
Actually pass the right pointer to the pdfio_error_cb function. | @@ -709,7 +709,7 @@ convert_text(
}
// Create a temporary PDF file...
- if ((pdf = pdfioFileCreateTemporary(d->tempfile, sizeof(d->tempfile), "1.7", &p->media, &p->crop, pdfio_error_cb, &document)) == NULL)
+ if ((pdf = pdfioFileCreateTemporary(d->tempfile, sizeof(d->tempfile), "1.7", &p->media, &p->crop, pdfio_error_c... |
h2olog: remove "const" for move semantics (thanks to | @@ -136,7 +136,7 @@ static void show_process(pid_t pid)
infof("Attaching pid=%d (%s)", pid, cmdline);
}
-static const std::string join_str(const std::string &sep, const std::vector<std::string> &strs)
+static std::string join_str(const std::string &sep, const std::vector<std::string> &strs)
{
std::string s;
for (auto i... |
cmake: removed hardcoded names for top level configuration | @@ -24,6 +24,7 @@ option(MI_DEBUG_UBSAN "Build with undefined-behavior sanitizer (needs clan
option(MI_CHECK_FULL "Use full internal invariant checking in DEBUG mode (deprecated, use MI_DEBUG_FULL instead)" OFF)
option(MI_INSTALL_TOPLEVEL "Install directly into $CMAKE_INSTALL_PREFIX instead of PREFIX/lib/mimalloc-versi... |
out_stackdriver: release pattern on exception (CID 305802) | @@ -193,14 +193,20 @@ void add_http_request_field(struct http_request_field *http_request,
*/
static void validate_latency(msgpack_object_str latency_in_payload,
struct http_request_field *http_request) {
- flb_sds_t pattern = flb_sds_create("^\\s*\\d+(.\\d+)?\\s*s\\s*$");
+ int i = 0;
+ int j = 0;
+ int status = 0;
ch... |
fixed handling of damaged frames in case we have only one BEACON inside | @@ -2379,6 +2379,8 @@ clientinfoptr = reassociationrequestptr +CAPABILITIESREQSTA_SIZE;
clientinfolen = reassociationrequestlen -CAPABILITIESREQSTA_SIZE;
if(clientinfolen < (int)IETAG_SIZE) return;
if(gettags(clientinfolen, clientinfoptr, &tags) == false) return;
+if(tags.essidlen == 0) return;
+if(tags.essid[0] == 0) ... |
out_stackdriver: gce: fix code style | static int fetch_metadata(struct flb_upstream *ctx, char *uri,
- char *payload) {
+ char *payload)
+{
int ret;
int ret_code;
size_t b_sent;
@@ -87,10 +88,12 @@ static int fetch_metadata(struct flb_upstream *ctx, char *uri,
/* Cleanup */
flb_http_client_destroy(c);
flb_upstream_conn_release(metadata_conn);
+
return ret_... |
crypto: tutorial - minor improvement | @@ -177,6 +177,10 @@ sudo kdb umount user/test
## Configuration Value Encryption/Decryption
+So far we learned how to encrypt and decrypt entrie configuration files.
+Sometimes we only want to protect a smaller subset of configuration values in a bigger configuration setting.
+For this reason the `crypto` plugin was de... |
asurada: config EC_ENTERING_RW
BRANCH=none
TEST=in EC RO, EC_ENTERING_RW=0
in EC RW, EC_ENTERING_RW=1 | @@ -81,6 +81,7 @@ GPIO(EN_PP5000_USB_A0_VBUS, PIN(B, 7), GPIO_OUT_LOW)
GPIO(EC_BATT_PRES_ODL, PIN(C, 0), GPIO_INPUT)
GPIO(BC12_DET_EN, PIN(J, 5), GPIO_OUT_LOW) /* EN_USB_C0_BC12_DET */
GPIO(EN_EC_ID_ODL, PIN(H, 5), GPIO_ODR_LOW)
+GPIO(ENTERING_RW, PIN(C, 5), GPIO_OUT_LOW) /* EC_ENTERING_RW */
/* I2C pins - Alternate fu... |
Update examples/rectangle to use typealias keyword.
This corrects one of the problems that were mentioned in | -- Please refer to the LICENSE and AUTHORS files for details
-- SPDX-License-Identifier: MIT
--- The following program demonstrates using table types in Pallene.
+typealias rectangle = { width: float, height: float }
-type rectangle = { width: float, height: float }
-
--- The find_area() function accepts a rectangle ob... |
Rename predicates in module/paths | [image]
(unmarshal image load-image-dict))
-(defn- check-. [x] (if (string/has-prefix? "." x) x))
-(defn- not-check-. [x] (unless (or (string/has-prefix? "/" x) (string/has-prefix? "." x)) x))
-(defn- check-/ [x] (if (string/has-prefix? "/" x) x))
+(defn- check-relative [x] (if (string/has-prefix? "." x) x))
+(defn- ch... |
log2 is not implemented on Android | #define HAVE_LCHOWN 1
#define HAVE_LINK 1
#define HAVE_LLABS 1
-#define HAVE_LOG2 1
+//RHO
+//#define HAVE_LOG2 1
#define HAVE_LSTAT 1
#define HAVE_MALLOC_USABLE_SIZE 1
#define HAVE_MEMALIGN 1
|
chip/mt8192_scp: fix unknown type errors
Fixes unknown type errors such as:
chip/mt8192_scp/ipi_chip.h:40:2: error: unknown type name 'uint32_t'
uint32_t signaled;
BRANCH=none
TEST=make BOARD=asurada_scp | #ifndef __CROS_EC_IPI_CHIP_H
#define __CROS_EC_IPI_CHIP_H
+#include "common.h"
+
/*
* Length of EC version string is at most 32 byte (NULL included), which
* also aligns SCP fw_version length.
|
[components][driver]: spi sd card, remove the extra reinitialization code | @@ -1249,16 +1249,6 @@ static rt_size_t rt_msd_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_siz
goto _exit;
}
- /* config spi to high speed */
- {
- struct rt_spi_configuration cfg;
- cfg.data_width = 8;
- cfg.mode = RT_SPI_MODE_0 | RT_SPI_MSB; /* SPI Compatible Modes 0 */
- cfg.max_hz = msd->max_clock;
-
- rt_... |
reset: reverse order | void reset_reset(void)
{
- if (!memory_reset_hww()) {
- Abort("Could not reset memory.");
- }
#ifndef TESTING
if (!securechip_update_keys()) {
Abort("Could not reset secure chip.");
}
#endif
+ if (!memory_reset_hww()) {
+ Abort("Could not reset memory.");
+ }
}
|
link libpocl-devices-vulkan.so with -pthread | @@ -30,5 +30,5 @@ endif(MSVC)
add_pocl_device_library(pocl-devices-vulkan pocl-vulkan.c pocl-vulkan.h)
if(ENABLE_LOADABLE_DRIVERS)
- target_link_libraries(pocl-devices-vulkan PRIVATE ${Vulkan_LIBRARY})
+ target_link_libraries(pocl-devices-vulkan PRIVATE ${Vulkan_LIBRARY} ${PTHREAD_LIBRARY})
endif()
|
Correct path for using the ft90x-sdk submodule (BRTSG-FOSS / ft90x-sdk). Default to ft90x-sdk instead of pre-built library. | @@ -3,23 +3,24 @@ CROSS_COMPILE = ft32-elf-
SKIP_NANOLIB = 1
# Set to use FT90X prebuilt libraries.
-FT90X_PREBUILT_LIBS = 1
+FT90X_PREBUILT_LIBS = 0
ifeq ($(FT90X_PREBUILT_LIBS),1)
# If the FT90X toolchain is installed on Windows systems then the SDK
# include files and prebuilt libraries are at: %FT90X_TOOLCHAIN%/har... |
WinShareConnector: fix missing last access date save | @@ -1118,6 +1118,13 @@ public class SharedDriveConnector extends org.apache.manifoldcf.crawler.connecto
fileLengthLong = fileLength;
} finally {
inputStream.close();
+ if (preserveLastAccess && !fileIsDirectory && orgLastAccess != 0L) {
+ try {
+ file.setLastAccess(orgLastAccess);
+ } catch (final Exception e) {
+ Logg... |
readme: fixed header in response to github/markup#1022 | -
-<img src="doc/criterion-title.png" height="96" alt="Criterion Logo" />
-=========
+<h1><img src="doc/criterion-title.png" height="96" alt="Criterion Logo" /></h1>
[](https://travis-ci.org/Snaipe/Criterion)
[![Windows Build S... |
apps/shell: Add clear command on TASH
there was no clear command. Added. | @@ -94,6 +94,7 @@ struct tash_cmd_info_s {
********************************************************************************/
static int tash_help(int argc, char **args);
+static int tash_clear(int argc, char **args);
static int tash_exit(int argc, char **args);
#if defined(CONFIG_BOARDCTL_RESET)
static int tash_reboot(... |
fixed skip maclist | @@ -1504,6 +1504,7 @@ maclistskipcount = 0;
while(1)
{
if((len = fgetline(fh_maclistin, PMKIDEAPOL_BUFFER_LEN, linein)) == -1) break;
+ if(len < 12) continue;
if(len > 17)
{
p2 = 0;
@@ -1518,6 +1519,7 @@ while(1)
linein[p2] = 0;
len = p2;
}
+ linein[12] = 0;
if(getfield(linein, 6, zeiger->mac) != 6) continue;
maclistsk... |
dm: fix potential NULL pointer access in virtio_console.c
"port->cb" in 'virtio_console_notify_tx()'
function maybe NULL when malicious inputs
are injected from virtio frondend in guest. | @@ -390,7 +390,7 @@ virtio_console_notify_tx(void *vdev, struct virtio_vq_info *vq)
while (vq_has_descs(vq)) {
vq_getchain(vq, &idx, iov, 1, flags);
- if (port != NULL)
+ if ((port != NULL) && (port->cb != NULL))
port->cb(port, port->arg, iov, 1);
/*
|
Make wifi settings only available on rpi gateways. | @@ -245,6 +245,12 @@ void DeRestPluginPrivate::initTimezone()
/*! Init WiFi parameters if necessary. */
void DeRestPluginPrivate::initWiFi()
{
+
+#if !defined(ARCH_ARMV6) && !defined (ARCH_ARMV7)
+ gwWifi = QLatin1String("not-available");
+ return;
+#endif
+
// only configure for official image
if (gwSdImageVersion.isE... |
sim: Remove extraneous slice reference
Clippy suggests that the reference is unnecessary when making a
comparison. | @@ -1514,7 +1514,7 @@ fn verify_trailer(flash: &SimMultiFlash, slot: &SlotInfo,
true
} else if v == 3 {
let expected = [erased_val; 16];
- if ©[24..] != expected {
+ if copy[24..] != expected {
warn!("\"magic\" mismatch at {:#x}", offset);
true
} else {
|
remove: MAP_NORESERVE | @@ -73,7 +73,7 @@ extern void *util_Realloc(void *ptr, size_t sz)
void *util_MMap(size_t sz)
{
- void *p = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | MAP_NORESERVE, -1, 0);
+ void *p = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
if (p == MAP_FAILED) {
LOG_F("mmap(size='%z... |
Update README.rst
Hopefully added refs to IoHeat example. | @@ -31,4 +31,4 @@ Expected output
:width: 600px
:align: center
-Contour plot of surface tidal heat flux of Io as a function of its eccentricity and obliquity. Contour units are W/m^2, the vertical line corresponds to Io's observed eccentricity, and the horizontal line is the expected obliquity if Io is in a Cassini sta... |
Configure: move down the treatment of seed sources
Most of all, this is so it doesn't output mysterious text when we're
treating the phony config targets LISH, HASH and TABLE | @@ -886,17 +886,6 @@ if (grep { $_ =~ /(^|\s)-Wl,-rpath,/ } ($user{LDLIBS} ? @{$user{LDLIBS}} : ())
"***** any of asan, msan or ubsan\n";
}
-if (scalar(@seed_sources) == 0) {
- print "Using implicit seed configuration\n";
- push @seed_sources, 'os';
-}
-die "Cannot seed with none and anything else"
- if scalar(grep { $... |
Handle awkward special cases in tan/cot32. | @@ -334,12 +334,24 @@ const C : (uint64, uint64, uint64)[257] = [
]
const tan32 = {x : flt32
+ /* A rather irritating special rounding case */
+ if std.flt32bits(x) == 0xdffd33a4
+ -> std.flt32frombits(0xbfd06c8c)
+ ;;
+
var r, s
(r, s) = tanorcot((x : flt64), true)
-> round_down(r, s)
}
const cot32 = {x : flt32
+ /* T... |
VCL: Update lcl addr/port from connect session reply msg. | @@ -871,6 +871,10 @@ vl_api_connect_session_reply_t_handler (vl_api_connect_session_reply_t * mp)
session->server_rx_fifo = rx_fifo;
session->server_tx_fifo = tx_fifo;
session->vpp_handle = mp->handle;
+ session->lcl_addr.is_ip4 = mp->is_ip4;
+ clib_memcpy (&session->lcl_addr.ip46, mp->lcl_ip,
+ sizeof (session->peer_a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.