message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix path encoding, changed with latest Valhalla | @@ -410,7 +410,7 @@ namespace carto {
try {
tripDirections = directions.Build(directionsOptions, tripPath);
- std::vector<valhalla::midgard::PointLL> shape = valhalla::midgard::decode7<std::vector<PointLL> >(tripDirections.shape());
+ std::vector<valhalla::midgard::PointLL> shape = valhalla::midgard::decode<std::vector... |
apps: Fix deprecation conditional in speed.c | @@ -1471,11 +1471,11 @@ int speed_main(int argc, char **argv)
#if !defined(OPENSSL_NO_CAST) && !defined(OPENSSL_NO_DEPRECATED_3_0)
CAST_KEY cast_ks;
#endif
+#ifndef OPENSSL_NO_DEPRECATED_3_0
static const unsigned char key16[16] = {
0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0,
0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0... |
Migrate old non union events to union version | @@ -333,6 +333,24 @@ export const migrateFrom120To200Event = event => {
}
};
}
+ if(event.args && event.command === "EVENT_ACTOR_MOVE_TO") {
+ return {
+ ...event,
+ args: {
+ actorId: event.args.actorId,
+ x: {
+ type: "number",
+ value: event.args.x,
+ },
+ y: {
+ type: "number",
+ value: event.args.y,
+ },
+ useColl... |
[numerics] fix wrong parameter in DGETRS call | @@ -151,7 +151,7 @@ int gfc3d_reformulation_local_problem(GlobalFrictionContactProblem* problem, Fri
#ifdef USE_NM_GESV
NM_gesv_expert(M,qtmp,NM_KEEP_FACTORS);
#else
- DGETRS(LA_NOTRANS, n, m, M->matrix0, n, ipiv, qtmp, 1, &infoDGETRS);
+ DGETRS(LA_NOTRANS, n, 1, M->matrix0, n, ipiv, qtmp, n, &infoDGETRS);
#endif
|
Include arch in ubuntu/debian repo instructions
See | @@ -139,7 +139,7 @@ alternative option below.
$ wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor \
| sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null
- $ echo "deb [signed-by=/usr/share/keyrings/goaccess.gpg] https://deb.goaccess.io/ $(lsb_release -cs) main" \
+ $ echo "deb [signed-by=/usr/share/keyring... |
hv: fixup format of log message in vm_load.c | @@ -151,7 +151,7 @@ int general_sw_loader(struct vm *vm, struct vcpu *vcpu)
if (is_vcpu_bsp(vcpu)) {
/* Set VCPU entry point to kernel entry */
vcpu->entry_addr = sw_kernel->kernel_entry_addr;
- pr_info("%s, VM *d VCPU %hu Entry: 0x%016llx ",
+ pr_info("%s, VM %hu VCPU %hu Entry: 0x%016llx ",
__func__, vm->vm_id, vcpu-... |
Failure of set_safety_mode falls back to SILENT. Failure to set silent results in hanging | @@ -117,9 +117,16 @@ void EXTI3_IRQHandler(void) {
void set_safety_mode(uint16_t mode, int16_t param) {
int err = set_safety_hooks(mode, param);
if (err == -1) {
- puts("Error: safety set mode failed\n");
- while (true) {} // ERROR: we can't continue if safety mode isn't succesfully set
- } else {
+ puts("Error: safety... |
safe method get icon for foreground | @@ -378,7 +378,18 @@ public class RhodesService extends Service {
Logger.D(TAG, "innerStartForeground() prepare builder PRE");
Builder builder = AndroidFunctionalityManager.getAndroidFunctionality().getNotificationBuilder(this, CHANNEL_ID, "Rhomobile Platform Service");
Logger.D(TAG, "innerStartForeground() prepare bui... |
Delete frc when all outstanding crypto data is acknowledged | @@ -1332,6 +1332,18 @@ static size_t conn_retry_early_payloadlen(ngtcp2_conn *conn) {
return 0;
}
+static void conn_cryptofrq_clear(ngtcp2_conn *conn, ngtcp2_pktns *pktns) {
+ ngtcp2_frame_chain *frc;
+ ngtcp2_ksl_it it;
+
+ for (it = ngtcp2_ksl_begin(&pktns->crypto.tx.frq); !ngtcp2_ksl_it_end(&it);
+ ngtcp2_ksl_it_nex... |
Fix refreshing plugin nodes after disabling a plugin | * plugins
*
* Copyright (C) 2010-2011 wj32
- * Copyright (C) 2017 dmex
+ * Copyright (C) 2017-2018 dmex
*
* This file is part of Process Hacker.
*
@@ -782,9 +782,8 @@ INT_PTR CALLBACK PhpPluginsDlgProc(
PhSetPluginDisabled(&baseNameRef, TRUE);
- ClearPluginsTree(context);
- PhpEnumerateLoadedPlugins(context);
- TreeNew... |
Fix bug in "dotnet" module. Use "counter" instead of "i" where required. | @@ -1002,7 +1002,7 @@ void dotnet_parse_tilde_2(
if (name != NULL)
{
- set_string(name, pe->object, "modulerefs[%i]", i);
+ set_string(name, pe->object, "modulerefs[%i]", counter);
counter++;
}
@@ -1276,17 +1276,17 @@ void dotnet_parse_tilde_2(
// Add 4 to skip the size.
set_integer(resource_base + resource_offset + 4,... |
Travis: Do not install `shfmt` twice
The Travis image of Ubuntu [Bionic Beaver][] already contains `shfmt`.
[Bionic Beaver]: | @@ -239,9 +239,6 @@ before_install:
sudo apt-get install libxerces-c-dev
sudo apt-get install moreutils # contains `sponge` required by `reformat-cmake`
sudo pip install cmake-format[yaml]==0.5.4
- mkdir -p "$HOME/bin" && cd "$HOME/bin" && \
- curl -L "https://github.com/mvdan/sh/releases/download/v2.6.3/shfmt_v2.6.3_l... |
test/inductive_charging.c: Format with clang-format
BRANCH=none
TEST=none | #define START_CHARGE_DELAY 5000 /* ms */
#define MONITOR_CHARGE_DONE_DELAY 1000 /* ms */
-#define TEST_CHECK_CHARGE_DELAY (START_CHARGE_DELAY + \
- MONITOR_CHARGE_DONE_DELAY + 500) /* ms */
+#define TEST_CHECK_CHARGE_DELAY \
+ (START_CHARGE_DELAY + MONITOR_CHARGE_DONE_DELAY + 500) /* ms */
static void wait_for_lid_debo... |
Improve emit | @@ -64,6 +64,9 @@ typedef struct lookup_table_s {
int instance;
lookup_table_entry_info_t entry;
+#ifdef T4P4S_DEBUG
+ int init_entry_count;
+#endif
} lookup_table_t;
typedef struct field_reference_s {
@@ -117,7 +120,10 @@ typedef struct header_descriptor_s {
void * pointer;
uint32_t length;
int var_width_field_bitwidt... |
Fix/tweak to the previous commit. The change should also improve handling of Torque layers | @@ -288,7 +288,10 @@ namespace carto {
}
for (std::pair<MapTile, int> childTileCount : childTileCountMap) {
if (childTileCount.second >= 2) {
- fetchTileList.push_back({ childTileCount.first, false, PARENT_PRIORITY_OFFSET + childTileCount.second - 2 });
+ long long tileId = getTileId(childTileCount.first);
+ if (!tileE... |
missing identity operator | @@ -359,6 +359,7 @@ void opt_reg_configure(unsigned int N, const long img_dims[N], struct opt_reg_s*
unsigned int K = (md_calc_size(N, thresh_dims) / 100) * regs[nr].k;
debug_printf(DP_INFO, "k = %d%%, actual K = %d\n", regs[nr].k, K);
+ trafos[nr] = linop_identity_create(DIMS, img_dims);
prox_ops[nr] = prox_niht_thres... |
Force JAVA reindexing to switch to new yndex proto | @@ -44,6 +44,7 @@ def just_do_it(java, kythe, kythe_to_proto, out_name, binding_only, kindexes):
print >> sys.stderr, '[INFO] Preprocessing execution time:', (datetime.datetime.now() - preprocess_start).total_seconds(), 'seconds'
print >> sys.stderr, '[INFO] Total execution time:', (datetime.datetime.now() - start).tot... |
Prototype check_range(). | @@ -2857,7 +2857,7 @@ entity *check_block_obstacle(entity *entity);
int check_block_wall(entity *entity);
int colorset_timed_expire(entity *ent);
int check_lost();
-
+int check_range(entity *ent, entity *target, e_animations animation_id);
void generate_basemap(int map_index, float rx, float rz, float x_size, float z_s... |
docs: ignore duplicate def warning in BT docs | @@ -28,7 +28,9 @@ README.rst:line: WARNING: Duplicate declaration, esp_err_t ulp_run(uint32_t entr
# This seems like a bug, as the field are ::model_id and ::vnd::model_id
esp_ble_mesh_defs.inc:line: WARNING: Duplicate declaration, uint16_t esp_ble_mesh_model::model_id
-
+WARNING:esp_bt_defs, use :noindex: for one of t... |
bmi270: revert hack odr | @@ -131,8 +131,7 @@ uint8_t bmi270_configure() {
bmi270_write(BMI270_REG_ACC_RANGE, BMI270_ACC_RANGE_16G);
time_delay_ms(1);
- // HACK: this ODR is marked "reserved" in the datasheet, no idea if it will really go this fast
- bmi270_write(BMI270_REG_GYRO_CONF, (BMI270_GYRO_CONF_FILTER_PERF << 7) | (BMI270_GYRO_CONF_NOIS... |
[CI] Enable builds for Rust branch | @@ -4,9 +4,9 @@ name: axle CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
- branches: [ master, uefi-bootloader, build-in-ci ]
+ branches: [ master, uefi-bootloader, build-in-ci, rust-support ]
pull_request:
- branches: [ master, uefi-bootloader, build-in-ci ]
+ branc... |
test: fix resource exists check | @@ -440,11 +440,9 @@ func (e *e2e) exists(args ...string) bool {
output, err := command.New(
e.kubectlPath, append([]string{"get"}, args...)...,
).RunSilent()
- if err != nil {
+ e.Nil(err)
return !strings.Contains(output.Error(), "not found")
}
- return true
-}
func (e *e2e) getSeccompPolicyID(profile string) string {... |
doc: design: fix image flags
Copy up to date image flags from image.h. Fixes for:
Wrong comment for IMAGE_F_ECDSA224_SHA256
Missing definition for IMAGE_F_PKCS1_PSS_RSA2048_SHA256 | @@ -79,12 +79,13 @@ struct image_tlv {
/*
* Image header flags.
*/
-#define IMAGE_F_PIC 0x00000001 /* Not currently supported. */
-#define IMAGE_F_SHA256 0x00000002 /* Image contains hash TLV */
+#define IMAGE_F_PIC 0x00000001 /* Not supported. */
+#define IMAGE_F_SHA256 0x00000002 /* Hash TLV is present */
#define IMA... |
keyword/api should have space before | @@ -2119,7 +2119,7 @@ void parseCode(const tic_script_config* config, const char* start, u8* color, co
ptr += strlen(config->singleComment);
continue;
}
- else if(isalpha_(c))
+ else if(isalpha_(c) && isspace(ptr[-1]))
{
wordStart = ptr;
ptr++;
|
nrf/modules/music: Remove init of softpwm/ticker upon music module load.
Also update microbit_music_init0 to register low priority ticker callback
for the music module. | @@ -77,10 +77,7 @@ extern volatile uint32_t ticks;
STATIC uint32_t start_note(const char *note_str, size_t note_len, const pin_obj_t *pin);
void microbit_music_init0(void) {
- softpwm_init();
- ticker_init(microbit_music_tick);
- ticker_start();
- pwm_start();
+ ticker_register_low_pri_callback(microbit_music_tick);
}
... |
u-boot: drop backported patches
U-boot has been updated to 2017.01 in poky/oe-core which contains these
patches. | -FILESEXTRAPATHS_prepend_rpi := "${THISDIR}/files:"
RDEPENDS_${PN}_append_rpi = " rpi-u-boot-scr"
-SRC_URI_append_rpi = " \
- file://0001-arm-add-save_boot_params-for-ARM1176.patch \
- file://0002-rpi-passthrough-of-the-firmware-provided-FDT-blob.patch \
- "
|
mINI: Remove unnecessary macro | @@ -142,7 +142,7 @@ static inline int closeFileRead (FILE * file, int errorNumber, Key * parentKey)
return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
-static int parseFile (KeySet * returned ELEKTRA_UNUSED, Key * parentKey)
+static int parseFile (KeySet * returned, Key * parentKey)
{
ELEKTRA_LOG ("Read configuration data");
int ... |
ST7789: Fix 240x240 display rotations. | @@ -119,18 +119,45 @@ namespace pimoroni {
// 240x240 Square and Round LCD Breakouts
if(width == 240 && height == 240) {
- caset[0] = 0;
- caset[1] = 239;
- if(round) {
- raset[0] = 40;
- raset[1] = 279;
- } else {
- raset[0] = rotate180 ? 80 : 0;
- raset[1] = rotate180 ? 329 : 239;
+ int row_offset = round ? 40 : 80;
... |
swaybar: properly draw urgent block right border
introduced via
uncovered via | @@ -307,7 +307,7 @@ static uint32_t render_status_block(struct render_context *ctx,
render_text(cairo, config->font, 1, block->markup, "%s", text);
x_pos += width;
- if (block->border && block->border_right > 0) {
+ if (border_color && block->border_right > 0) {
x_pos += margin;
render_sharp_line(cairo, border_color, x... |
kiln: fil and dir not ~ | (clap a b furl)
|- ^- (list (unit toro))
=+ b=.^(arch %cy a)
- ?^ fil.b (snoc c `(fray a))
+ ?: ?=([^ ~] b) (snoc c `(fray a))
+ =? c ?=(^ fil.b) (snoc c `(fray a))
%- zing
%+ turn ~(tap by dir.b)
|= [kid=@ta ~]
|
add NULL check in _mi_segment_of | @@ -285,8 +285,9 @@ void _mi_segment_map_freed_at(const mi_segment_t* segment) {
// Determine the segment belonging to a pointer or NULL if it is not in a valid segment.
static mi_segment_t* _mi_segment_of(const void* p) {
+ if (p == NULL) return NULL;
mi_segment_t* segment = _mi_ptr_segment(p);
- if (segment == NULL) ... |
script: remove commented out JAVA_HOME code | @@ -11,16 +11,6 @@ if [ -d "$1" ]; then
SOURCE=$(readlink -f "$1")
fi
-# set JAVA_HOME if you want to use a non-default Java.
-#cd /opt
-#JAVA_IN_OPT=$(readlink -f $(find . -maxdepth 1 -name 'jdk*' -print -quit))
-#
-#if [ "x$JAVA_HOME" = "x" -a "x$JAVA_IN_OPT" != "x" ]
-#then
-# export JAVA_HOME="$JAVA_IN_OPT"
-#fi
-#... |
Fix possible memory leak
fixes | @@ -855,6 +855,7 @@ stlink_t *stlink_open_usb(enum ugly_loglevel verbose, bool reset, char serial[16
if (ret != 0) {
WLOG("Error %d (%s) opening ST-Link/V2 device %03d:%03d\n",
ret, strerror (errno), libusb_get_bus_number(list[cnt]), libusb_get_device_address(list[cnt]));
+ libusb_free_device_list(list, 1);
goto on_err... |
README.md: Use version 2.04.79 | @@ -20,11 +20,11 @@ Packages for Qt4 and Raspbian Wheezy are available but not described here.
##### Install deCONZ and development package
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.78-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.04.79-qt5... |
Fix a Travis failure
Declare a variable as static to silence the warning | @@ -753,7 +753,7 @@ typedef struct sigalg_lookup_st {
int sig;
} SIGALG_LOOKUP;
-SIGALG_LOOKUP sigalg_lookup_tbl[] = {
+static SIGALG_LOOKUP sigalg_lookup_tbl[] = {
{TLSEXT_SIGALG_ecdsa_secp256r1_sha256, NID_sha256, EVP_PKEY_EC},
{TLSEXT_SIGALG_ecdsa_secp384r1_sha384, NID_sha384, EVP_PKEY_EC},
{TLSEXT_SIGALG_ecdsa_secp... |
tool: elektra - fix webui dockerfile | FROM ubuntu:16.04
# elektra deps
+RUN apt-get update
+RUN apt-get install -y software-properties-common
+RUN add-apt-repository ppa:longsleep/golang-backports
RUN apt-get update -y && apt-get install -y cmake git build-essential libyajl-dev curl nodejs-legacy npm
+ENV GO111MODULE=on
+ENV LD_LIBRARY_PATH=/usr/local/lib
... |
Fix for double free on fclose due to GC not knowing it failed | @@ -279,7 +279,10 @@ static Janet cfun_io_fclose(int32_t argc, Janet *argv) {
return janet_wrap_integer(WEXITSTATUS(status));
#endif
} else {
- if (fclose(iof->file)) janet_panic("could not close file");
+ if (fclose(iof->file)) {
+ iof->flags |= JANET_FILE_NOT_CLOSEABLE;
+ janet_panic("could not close file");
+ }
iof-... |
Can't deprecate alias libraries | @@ -23,11 +23,8 @@ target_include_directories(clap INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
-# Older versions of the CLAP interfaces only defined a `clap-core` library.
-# Exposing the main library with the same name as the project makes it much
... |
Add Zen thermostat after resolving merge conflicts | @@ -1101,7 +1101,8 @@ int DeRestPluginPrivate::changeSensorConfig(const ApiRequest &req, ApiResponse &
rspItem["success"] = rspItemState;
}
else if (sensor->modelId() == QLatin1String("SLR2") || //Hive
- sensor->modelId().startsWith(QLatin1String("TH112")) ) // Sinope
+ sensor->modelId().startsWith(QLatin1String("TH112... |
Improve compiler check for Wimplicit-fallthrough | @@ -126,8 +126,8 @@ int CLR_RT_UnicodeHelper::CountNumberOfBytes( int max )
// the switch cases to improve the algorithm
#ifdef __GNUC__
#pragma GCC diagnostic push
-// the GCC compiler for ESP32 doesn't know the -Wimplicit-fallthrough option
-#ifndef PLATFORM_ESP32
+// -Wimplicit-fallthrough option was added in GCC 7
... |
[catboost/java] add copyRowMajorPredictions() as requested by glebwin@ | @@ -101,6 +101,17 @@ public class CatBoostPredictions {
return predictions;
}
+ /**
+ * Return row-major copy of prediction matrix. Prediction for object with index `i` in dimension `j` will be at
+ * `i*getPredictionDimension() + j`.
+ *
+ * @return Row-major copy of prediction matrix.
+ */
+ @NotNull
+ public double[... |
cmd/kubectl-gadget: Export GetTraceListFromOptions().
This function was privated but it can be useful to have it as public. | @@ -96,6 +96,9 @@ type TraceConfig struct {
// Parameters is used to pass specific gadget configurations.
Parameters map[string]string
+
+ // AdditionalLabels is used to pass specific labels to traces.
+ AdditionalLabels map[string]string
}
func init() {
@@ -384,6 +387,15 @@ func CreateTrace(config *TraceConfig) (strin... |
mangle: mangle_Bytes - limit size to 2 bytes | @@ -115,15 +115,15 @@ static void mangle_MemMove(run_t* run, bool printable HF_ATTR_UNUSED) {
static void mangle_Bytes(run_t* run, bool printable) {
size_t off = mangle_getOffSet(run);
- uint64_t buf;
+ uint16_t buf;
if (printable) {
util_rndBufPrintable((uint8_t*)&buf, sizeof(buf));
} else {
buf = util_rnd64();
}
- /*... |
wrap mouse result in tuple_n | @@ -750,7 +750,7 @@ static Janet janet_mouse(int32_t argc, Janet* argv)
result[5] = janet_wrap_number(mouse->scrollx);
result[6] = janet_wrap_number(mouse->scrolly);
- return janet_wrap_tuple(&result);
+ return janet_wrap_tuple(janet_tuple_n(result, 7));
}
static Janet janet_circ(int32_t argc, Janet* argv)
|
added weak cindidate based on wpa-sec analysis | @@ -276,28 +276,28 @@ static const char *wordlist[] =
"orange", "owl", "oxygen",
"palm", "panda", "pant", "parade", "park", "pastel", "patron", "pear",
"pencil", "perfect", "phobic", "phoenix", "phone", "piano", "pink", "plain",
-"planet", "pledge", "plum", "pocket", "polite", "pond", "poodle", "potato",
-"prairie", "p... |
test: fix `find_cmake.sh` path in node's environment setup | @@ -27,8 +27,8 @@ if [ "$OS" == "Windows_NT" ]; then
CMAKE=/cygdrive/c/cmake/bin/cmake
ADDITIONAL_CMAKE_FLAGS="-Thost=x64 -A x64"
else
- chmod u+x ./.evergreen/find-cmake.sh
- . ./.evergreen/find-cmake.sh
+ chmod u+x ./.evergreen/find_cmake.sh
+ . ./.evergreen/find_cmake.sh
fi
# this needs to be explicitly exported for... |
pbio: don't call motorcontrol_poll too frequently | @@ -44,6 +44,7 @@ void pbio_poll(void) {
if (now - prev_fast_poll_time >= 2) {
_pbdrv_adc_poll(now);
_pbdrv_ioport_poll(now);
+ _pbio_motorcontrol_poll();
prev_fast_poll_time = now;
}
if (now - prev_slow_poll_time >= 32) {
@@ -51,7 +52,6 @@ void pbio_poll(void) {
_pbsys_poll(now);
prev_slow_poll_time = now;
}
- _pbio_m... |
Fix column chooser window font | @@ -668,6 +668,7 @@ INT_PTR CALLBACK PhpColumnsDlgProc(
HDC bufferDc;
HBITMAP bufferBitmap;
HBITMAP oldBufferBitmap;
+ HFONT oldFontHandle;
PPH_STRING string;
RECT bufferRect =
{
@@ -691,6 +692,7 @@ INT_PTR CALLBACK PhpColumnsDlgProc(
bufferDc = CreateCompatibleDC(drawInfo->hDC);
bufferBitmap = CreateCompatibleBitmap(d... |
Add AppVeyor badge. | @@ -6,6 +6,7 @@ substantial changes to the ippproxy and ippserver implementations to make them
more general-purpose and configurable.
[](https://travis-ci.org/istopwg/ippsample)
+[;
*
* @return 0 on success, < 0 on error.
*/
-int ksceDisplayGetFrameBufInfoForPid(SceUID pid, int head, int index, SceDisplayFrameBufInfo *info);
+int ksceDisplayGetProcFrameBufInternal(SceUID pid, int head, int index, SceDisplayFrameB... |
munin plugin: always exit 0 in autoconf
The autoconf operation should always exit 0, also in case the answer in "no",
see | @@ -174,11 +174,11 @@ get_state ( ) {
if test "$1" = "autoconf" ; then
if test ! -f $conf; then
echo no "($conf does not exist)"
- exit 1
+ exit 0
fi
if test ! -d `dirname $state`; then
echo no "(`dirname $state` directory does not exist)"
- exit 1
+ exit 0
fi
echo yes
exit 0
|
dm: mei: check for state before link reset callback
Prevent intercepting reset callback if reset state
transition is already in progress.
Acked-by: Acked-by: Yu Wang | @@ -1984,6 +1984,9 @@ vmei_reset_callback(int fd, enum ev_type type, void *param)
char buf[MEI_DEV_STATE_LEN] = {0};
int sz;
+ if (vmei->status != VMEI_STS_READY)
+ return;
+
lseek(fd, 0, SEEK_SET);
sz = read(fd, buf, 12);
if (first_time) {
|
Remove duplicate service notification check | @@ -1262,7 +1262,7 @@ NTSTATUS PhpServiceNonPollThreadStart(
{
if (notifyContext->NotifyRegistration)
{
- if (UnsubscribeServiceChangeNotifications_I && notifyContext->NotifyRegistration)
+ if (UnsubscribeServiceChangeNotifications_I)
UnsubscribeServiceChangeNotifications_I(notifyContext->NotifyRegistration);
notifyCon... |
v2.0.17 landed | -ejdb2 (2.0.17) UNRELEASED; urgency=medium
+ejdb2 (2.0.17) testing; urgency=medium
* Added `inverse` JQL query option.
- -- Anton Adamansky <adamansky@gmail.com> Wed, 05 Jun 2019 23:08:38 +0700
+ -- Anton Adamansky <adamansky@gmail.com> Wed, 05 Jun 2019 23:15:09 +0700
ejdb2 (2.0.16) testing; urgency=medium
|
fix freertos port tick to time issue | @@ -119,7 +119,7 @@ lwesp_sys_sem_delete(lwesp_sys_sem_t* p) {
uint32_t
lwesp_sys_sem_wait(lwesp_sys_sem_t* p, uint32_t timeout) {
uint32_t t = xTaskGetTickCount();
- return xSemaphoreTake(*p, !timeout ? portMAX_DELAY : timeout) == pdPASS ? (xTaskGetTickCount() - t) : LWESP_SYS_TIMEOUT;
+ return xSemaphoreTake(*p, !tim... |
CommentItem: prevent actions until confirmed | @@ -110,6 +110,7 @@ return false;
group={group}
isRelativeTime
></Author>
+ {!post.pending &&
<Box opacity={hovering ? '100%' : '0%'}>
<Dropdown
alignX="right"
@@ -154,6 +155,7 @@ return false;
<Icon icon="Ellipsis" />
</Dropdown>
</Box>
+ }
</Row>
<GraphContent
borderRadius={1}
|
Add fallbacks to RaptorLake entry | @@ -1549,6 +1549,10 @@ int get_cpuname(void){
case 7: // Raptor Lake
if(support_avx2())
return CPUTYPE_HASWELL;
+ if(support_avx())
+ return CPUTYPE_SANDYBRIDGE;
+ else
+ return CPUTYPE_NEHALEM;
}
break;
}
@@ -2344,8 +2348,14 @@ int get_coretype(void){
case 11:
switch (model) {
case 7: // Raptor Lake
+#ifndef NO_AVX2
i... |
sim: pad images to alignment
Adjust the image sizes up to a multiple of 8. With the strict checking
in the flash driver, we aren't allowed to write partial lines. | @@ -121,10 +121,12 @@ fn main() {
// println!("Areas: {:#?}", areadesc.get_c());
// Install the boot trailer signature, so that the code will start an upgrade.
- let primary = install_image(&mut flash, 0x020000, 32779);
+ // TODO: This must be a multiple of flash alignment, add support for an image that is smaller,
+ /... |
CCode: Test plugin using `%` as escape character | @@ -27,15 +27,22 @@ using ckdb::ksDel;
using ckdb::Plugin;
-void testRoundTrip (string const decodedString, string const encodedString = "")
-#ifdef __llvm__
- __attribute__ ((annotate ("oclint:suppress[empty if statement]"), annotate ("oclint:suppress[high cyclomatic complexity]"),
- annotate ("oclint:suppress[high nc... |
Add Arabic & Persian letters in the RTL range | @@ -156,6 +156,11 @@ bool lv_bidi_letter_is_rtl(uint32_t letter)
if(letter >= 0x5d0 && letter <= 0x5ea) return true;
if(letter == 0x202E) return true; /*Unicode of LV_BIDI_RLO*/
+ /* Check for Persian and Arabic characters [https://en.wikipedia.org/wiki/Arabic_script_in_Unicode]*/
+ if(letter >= 0x600 && letter <= 0x6F... |
Changes rule activation threshold on mainnet to 90%. | @@ -128,7 +128,7 @@ public:
consensus.nPowTargetSpacing = 1 * 60;
consensus.fPowAllowMinDifficultyBlocks = false;
consensus.fPowNoRetargeting = false;
- consensus.nRuleChangeActivationThreshold = 1632; // Approx 80% of 2018
+ consensus.nRuleChangeActivationThreshold = 1814; // Approx 90% of 2016
consensus.nMinerConfirm... |
remove irc from readme | @@ -25,4 +25,4 @@ Please check the Getting Involved section of our wiki for more information on co
### Contact
-If you wish to contact me, please use the details on my Github profile. I can also usually be found idling on the FreeNode IRC network as ``alexandervdm``.
+If you wish to contact me, please use the details o... |
minimal exit() implementation | @@ -32,15 +32,17 @@ int lseek(int UNUSED(fd), int UNUSED(offset), int UNUSED(whence)) {
return 0;
}
-extern task_t* current_task;
+//extern task_t* current_task;
int exit(int code) {
- current_task->exit_code = code;
- _kill();
+ task_small_t* current = tasking_get_current_task();
+ printf("[%s [%d]] EXIT status code %... |
machinarium: add some words about timeouts | @@ -11,7 +11,7 @@ Machinarium is based on combination of `pthreads(7)` and custom made implementat
multi-tasking primitives (coroutines).
Each coroutine executed using own stack context and transparently scheduled by `epoll(7)` event-loop logic.
-Each working machinarium thread can handle thousands of executing corouti... |
powerpc: use full 64 bit structure size instead of pt_regs | @@ -157,7 +157,7 @@ struct user_regs_struct_64 {
#endif /* defined(__arm__) || defined(__aarch64__) */
#if defined(__powerpc64__) || defined(__powerpc__)
-#define HEADERS_STRUCT struct pt_regs
+#define HEADERS_STRUCT struct user_regs_struct_64
struct user_regs_struct_32 {
uint32_t gpr[32];
uint32_t nip;
|
Build: Try to fix analysis | @@ -94,6 +94,7 @@ matrix:
- os: osx
name: "Analyze Scripts"
+ osx_image: xcode11.6
script:
- HOMEBREW_NO_INSTALL_CLEANUP=1 brew install shellcheck
@@ -105,7 +106,7 @@ matrix:
- os: osx
name: "Analyze Coverity"
- osx_image: xcode11.3
+ osx_image: xcode11.6
compiler: clang
before_install:
|
Docs: removing stray pivotal reference | <div class="nav-content">
<ul>
<li>
- <a href="/docs/600/common/gpdb-features.html">Pivotal Greenplum® 6.0.0 Documentation</a>
+ <a href="/docs/600/common/gpdb-features.html">Greenplum Database 6.0.0 Documentation</a>
</li>
<li>
<a href="/docs/600/admin_guide/admin_guide.html">Administrator Guide</a>
|
interface: simplify edit reducer | @@ -59,18 +59,16 @@ const edit = (json: ContactUpdate, state: S) => {
if (!field) {
return;
}
- const contact = state.contacts?.[ship];
+
const value = data['edit-field'][field];
- if(!contact) {
- return;
- }
if(field === 'add-group') {
- contact.groups.push(value);
+ state.contacts[ship].groups.push(value);
} else if... |
Add latest guid types | @@ -325,6 +325,9 @@ PhFindIntegerSiKeyValuePairsStringRef(
#define GUID_VERSION_MD5 3
#define GUID_VERSION_RANDOM 4
#define GUID_VERSION_SHA1 5
+#define GUID_VERSION_TIME 6
+#define GUID_VERSION_EPOCH 7
+#define GUID_VERSION_VENDOR 8
#define GUID_VARIANT_NCS_MASK 0x80
#define GUID_VARIANT_NCS 0x00
|
hitresult a bit smaller | @@ -4,7 +4,7 @@ from ImageProcess.imageproc import change_size
hitprefix = "hit"
default_size = 128
-hitresult_size = 2
+hitresult_size = 1.7
def prepare_hitresults(scale, beatmap):
|
[core] const buffer * in config_check_cond_nocache
use (const buffer *) in config_check_cond_nocache() | @@ -510,7 +510,7 @@ static cond_result_t config_check_cond_nocache(request_st * const r, const data_
/* pass the rules */
- buffer *l;
+ const buffer *l;
switch (dc->comp) {
case COMP_HTTP_HOST:
@@ -591,28 +591,24 @@ static cond_result_t config_check_cond_nocache(request_st * const r, const data_
break;
case COMP_HTTP_... |
RHBZ#2075862: VirtIO-FS: prevent Stop from accessing already deleted FileSystem
FileSystem in Stop() may be deleted already if the device is removed. | @@ -279,13 +279,14 @@ static DWORD VirtFsRegDevHandleNotification(VIRTFS *VirtFs)
VOID VIRTFS::Stop()
{
- FspFileSystemStopDispatcher(FileSystem);
-
- if (FileSystem != NULL)
+ if (FileSystem == NULL)
{
+ return;
+ }
+
+ FspFileSystemStopDispatcher(FileSystem);
FspFileSystemDelete(FileSystem);
FileSystem = NULL;
- }
Lo... |
Update copyrights/licenses on the rest of the ippserver files. | @@ -32,12 +32,6 @@ main(int argc, /* I - Number of command-line args */
*confdir = NULL, /* Configuration directory */
*name = NULL; /* Printer name */
server_pinfo_t pinfo; /* Printer information */
-#if 0
- int duplex = 0, /* Duplex mode */
- ppm = 0, /* Pages per minute for mono */
- ppm_color = 0, /* Pages per minu... |
DM: samples: Correct parameter of intel_pstate
The parameter of intel_pstate should be 'disable' instead of 'disabled'.
This patch fixes it. | @@ -65,7 +65,7 @@ pm_by_vuart="--pm_by_vuart tty,/dev/ttyS1"
#root=/dev/nvme0n1p3 rw rootwait nohpet console=hvc0 console=ttyS0 \
#no_timer_check ignore_loglevel log_buf_len=16M consoleblank=0 \
#clocksource=tsc tsc=reliable x2apic_phys processor.max_cstate=0 \
-#intel_idle.max_cstate=0 intel_pstate=disabled mce=ignore... |
Add safety to dummy_random in case of NULL context | @@ -60,8 +60,11 @@ int dummy_random( void *p_rng, unsigned char *output, size_t output_len )
size_t i;
#if defined(MBEDTLS_CTR_DRBG_C)
+ //mbedtls_ctr_drbg_random requires a valid mbedtls_ctr_drbg_context in p_rng
+ if( p_rng != NULL ) {
//use mbedtls_ctr_drbg_random to find bugs in it
ret = mbedtls_ctr_drbg_random(p_r... |
lpd: remove spurious error message when ipv6 or ipv4 is disabled | @@ -109,7 +109,7 @@ static int create_send_socket( int af, const char ifname[] ) {
int sock;
if( (sock = net_socket( "LPD", ifname, IPPROTO_IP, af ) ) < 0 ) {
- goto fail;
+ return -1;
}
if( af == AF_INET ) {
@@ -157,7 +157,7 @@ static int create_receive_socket( const IP *addr, const char ifname[] ) {
int sock;
if( (so... |
Update NEWS file for new release
Updated the NEWS file with the most significant items from CHANGES | o Allow GNU style "make variables" to be used with Configure.
o Add a STORE module (OSSL_STORE)
o Claim the namespaces OSSL and OPENSSL, represented as symbol prefixes
+ o Add multi-prime RSA (RFC 8017) support
+ o Add SM3 implemented according to GB/T 32905-2016
+ o Add SM4 implemented according to GB/T 32907-2016.
+ ... |
added more EAP Method Types | @@ -801,6 +801,7 @@ anecflag = FALSE;
int c;
int llctype;
+uint8_t eap3flag = FALSE;
uint8_t eap4flag = FALSE;
uint8_t eap9flag = FALSE;
uint8_t eap13flag = FALSE;
@@ -1087,6 +1088,11 @@ while((pcapstatus = pcap_next_ex(pcapin, &pkh, &packet)) != -2)
if(eapext->eapcode == EAP_CODE_RESP)
addresponseidentity(eapext);
+ i... |
make the README looks shorter by removing new lines | @@ -63,10 +63,7 @@ Close the Terminal that echo-bot is running or type "Ctrl-C" to kill it.
## Usage example
```c
-void on_message(
- discord_t *client,
- discord_user_t *self,
- discord_message_t *message)
+void on_message(discord_t *client, discord_user_t *self, discord_message_t *message)
{
// make sure it doesn't e... |
SensorAPI: Send sensor data over OIC
Use COAP_MAX_URI constant instead of calloc | @@ -460,9 +460,7 @@ sensor_oic_get_data(oc_request_t *request, oc_interface_mask_t interface)
char *typename;
sensor_type_t type;
const char s[2] = "/";
- char *tmpstr;
-
- tmpstr = calloc(request->resource->uri.os_sz, request->resource->uri.os_sz);
+ char tmpstr[COAP_MAX_URI];
memcpy(tmpstr, (char *)&(request->resourc... |
Update tests/abi/testabi_ks.c | @@ -2781,7 +2781,6 @@ static void test_simpleLookup (void)
succeed_if_same_string (keyString (returnedKey), keyString (dup));
succeed_if (ksGetSize (ks) == 1, "key deleted from keyset");
- keyDel (searchKey);
ksDel (ks);
}
|
fix merge conflict on daeSetByUser; fix | @@ -643,9 +643,8 @@ cJSON* mergeJSONObjects(const cJSON* j1, const cJSON* j2) {
cJSON_ArrayForEach(el, j2) {
char* key = el->string;
if (jsonHasKey(j1, key)) {
- if (!cJSON_Compare(cJSON_GetObjectItemCaseSensitive(j1, key), el,
- cJSON_True)) {
- cJSON* el1 = cJSON_GetObjectItemCaseSensitive(j1, key);
+ cJSON* el1 = cJ... |
install-config-file: Use less options for mktemp | @@ -7,7 +7,7 @@ First of all, we create a small example configuration file.
To do so, we first create a temporary file and store its location in Elektra.
```sh
-kdb set user/tests/tempfiles/firstFile $(mktemp --tmpdir file-XXXXX)
+kdb set user/tests/tempfiles/firstFile $(mktemp)
echo -e "keyA=a\nkeyB=b\nkeyC=c" > `kdb ... |
Fail test if test-script loading fails | @@ -49,7 +49,9 @@ testsFromFile fp = do
then do
results <- Lua.peekList Lua.stackTop
return $ Tasty.testGroup fp $ map testTree results
- else Lua.throwTopMessage
+ else do
+ errMsg <- toString <$> Lua.tostring' Lua.stackTop
+ return $ Tasty.singleTest fp (Failure errMsg)
testTree :: Tree -> Tasty.TestTree
testTree (Tr... |
session: fix session_main_get_worker_if_valid
Type: fix | @@ -598,7 +598,7 @@ session_main_get_worker (u32 thread_index)
static inline session_worker_t *
session_main_get_worker_if_valid (u32 thread_index)
{
- if (pool_is_free_index (session_main.wrk, thread_index))
+ if (thread_index > vec_len (session_main.wrk))
return 0;
return &session_main.wrk[thread_index];
}
|
ESP-NETIF: add unit test for get/set hostname API | @@ -225,3 +225,31 @@ TEST_CASE("esp_netif: create custom wifi interfaces", "[esp_netif][leaks=0]")
esp_netif_destroy(sta);
}
+
+TEST_CASE("esp_netif: get/set hostname", "[esp_netif]")
+{
+ const char *hostname;
+ esp_netif_config_t cfg = ESP_NETIF_DEFAULT_WIFI_STA();
+
+ test_case_uses_tcpip();
+ esp_netif_t *esp_netif... |
Lua: Use all characters to calculate string hash
For a lot of long strings which have same prefix which extends beyond
hashing limit, there will be many hash collisions which result in
performance degradation using commands like KEYS | @@ -75,7 +75,7 @@ static TString *newlstr (lua_State *L, const char *str, size_t l,
TString *luaS_newlstr (lua_State *L, const char *str, size_t l) {
GCObject *o;
unsigned int h = cast(unsigned int, l); /* seed */
- size_t step = (l>>5)+1; /* if string is too long, don't hash all its chars */
+ size_t step = 1;
size_t ... |
fix typo channel frequency docs | @@ -441,7 +441,7 @@ void CHANNEL(_add_awgn)(CHANNEL() _q, \
\
/* apply carrier offset impairment */ \
/* _q : channel object */ \
-/* _frequency : carrier frequency offse [radians/sample */ \
+/* _frequency : carrier frequency offset [radians/sample] */ \
/* _phase : carrier phase offset [radians] */ \
void CHANNEL(_ad... |
1. force updating libdiscord.a and cleaning up libdiscord.a; 2. add settings.o | @@ -2,7 +2,7 @@ CC ?= gcc
OBJDIR := obj
LIBDIR := lib
-SRC := $(wildcard discord-*.c curl-websocket.c)
+SRC := $(wildcard discord-*.c curl-websocket.c settings.c)
_OBJS := $(patsubst %.c, %.o, $(SRC))
OBJS := $(addprefix $(OBJDIR)/, $(_OBJS))
@@ -15,10 +15,9 @@ LIBDISCORD_LDFLAGS := -L./$(LIBDIR) -ldiscord -lcurl -lbea... |
vppinfra: missing __clib_export for clib_pmalloc_alloc_aligned
Type: improvement | @@ -476,7 +476,7 @@ clib_pmalloc_alloc_aligned_on_numa (clib_pmalloc_main_t * pm, uword size,
return clib_pmalloc_alloc_inline (pm, 0, size, align, numa_node);
}
-void *
+__clib_export void *
clib_pmalloc_alloc_aligned (clib_pmalloc_main_t *pm, uword size, uword align)
{
return clib_pmalloc_alloc_inline (pm, 0, size, a... |
Add Ability to run a subset of Fuzz Tests | @@ -26,10 +26,14 @@ ifndef FUZZ_TIMEOUT_SEC
export FUZZ_TIMEOUT_SEC=120
endif
+ifndef FUZZ_TESTS
+ export FUZZ_TESTS=${TESTS}
+endif
+
.PHONY : all
all : ld-preload
-all : $(TESTS)
+all : run_tests
include ../../s2n.mk
@@ -47,11 +51,13 @@ ld-preload :
$(TESTS)::
@${CC} ${CFLAGS} $@.c -o $@ ${LDFLAGS} > /dev/null
- @( \... |
Use highest priority MPU region for DMA buffers. | @@ -54,7 +54,7 @@ void HAL_MspInit(void)
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
- MPU_InitStruct.Number = MPU_REGION_NUMBER0;
+ MPU_InitStruct.Number = MPU_REGION_NUMBER15;
MPU_InitStruct.Type... |
VERSION bump to version 1.4.74 | @@ -37,7 +37,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 4)
-set(SYSREPO_MICRO_VERSION 73)
+set(SYSREPO_MICRO_VERSION 74)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
options/glibc: Add missing network defines and members to struct res_state | #ifndef _RESOLV_H
#define _RESOLV_H
+#include <netinet/in.h>
+
#define RES_INIT 0x00000001
#define RES_DEBUG 0x00000002
#define RES_USEVC 0x00000008
#define RES_STAYOPEN 0x00000100
#define RES_DNSRCH 0x00000200
+#define MAXNS 3
+#define MAXDNSRCH 6
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -25,6 +30,10 @@ int res_ini... |
OcBootManagementLib: Fix comment for CustomEntryContext | @@ -477,7 +477,7 @@ struct OC_PICKER_CONTEXT_ {
//
OC_CUSTOM_DESCRIBE CustomDescribe;
//
- // Context to pass to CustomRead, optional.
+ // Context to pass to CustomRead and CustomDescribe, optional.
//
VOID *CustomEntryContext;
//
|
Increment version to 4.5.13. | #define MOD_WSGI_MAJORVERSION_NUMBER 4
#define MOD_WSGI_MINORVERSION_NUMBER 5
-#define MOD_WSGI_MICROVERSION_NUMBER 12
-#define MOD_WSGI_VERSION_STRING "4.5.12"
+#define MOD_WSGI_MICROVERSION_NUMBER 13
+#define MOD_WSGI_VERSION_STRING "4.5.13"
/* -------------------------------------------------------------------------... |
cmake FEATURE full-featured cmake find file | #
# LIBYANG_FOUND - system has LibYANG
# LIBYANG_INCLUDE_DIRS - the LibYANG include directory
-# LIBYANG_LIBRARIES - Link these to use LibSSH
+# LIBYANG_LIBRARIES - Link these to use LibYANG
+# LIBYANG_VERSION - SO version of the found libyang library
#
-# Author Radek Krejci <rkrejci@cesnet.cz>
-# Copyright (c) 2015 C... |
netkvm: fix false error on RSS disable | @@ -446,9 +446,10 @@ NDIS_STATUS ParaNdis6_RSSSetParameters( PARANDIS_ADAPTER *pContext,
return NDIS_STATUS_NOT_SUPPORTED;
}
- if (!(Params->Flags & NDIS_RSS_PARAM_FLAG_HASH_INFO_UNCHANGED) &&
+ if (!(Params->Flags & (NDIS_RSS_PARAM_FLAG_HASH_INFO_UNCHANGED | NDIS_RSS_PARAM_FLAG_DISABLE_RSS)) &&
!IsValidHashInfo(Params... |
Update x64emu.c
Added some adapations for Android as there is no __builtin_aarch64_get_fpcr and __builtin_aarch64_set_fpcr in Bionic. | @@ -518,10 +518,19 @@ void applyFlushTo0(x64emu_t* emu)
#ifdef __x86_64__
_mm_setcsr(_mm_getcsr() | (emu->mxcsr.x32&0x8040));
#elif defined(__aarch64__)
+ #ifdef __ANDROID__
+ uint64_t fpcr;
+ __asm__ __volatile__ ("mrs %0, fpcr":"=r"(fpcr));
+ #else
uint64_t fpcr = __builtin_aarch64_get_fpcr();
+ #endif
fpcr &= ~((1<<... |
h2olog: there's no reason to use pointers for bpf::BPF | @@ -394,7 +394,7 @@ int main(int argc, char **argv)
cflags.push_back(generate_header_filter_cflag(response_header_filters));
}
- std::unique_ptr<ebpf::BPF> bpf(new ebpf::BPF());
+ ebpf::BPF bpf;
std::vector<ebpf::USDT> probes;
bool selective_tracing = false;
@@ -495,23 +495,23 @@ int main(int argc, char **argv)
fprintf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.