message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
mambo: Allow setting the Linux command line from the environment
For automated testing it's helpful to be able to set the Linux command
line via an environment variable. | @@ -31,6 +31,8 @@ if { ![info exists env(SKIBOOT_ZIMAGE)] } {
}
mconfig payload PAYLOAD $env(SKIBOOT_ZIMAGE)
+mconfig linux_cmdline LINUX_CMDLINE ""
+
# Paylod: Memory location for a Linux style ramdisk/initrd
mconfig payload_addr PAYLOAD_ADDR 0x20000000;
@@ -311,7 +313,9 @@ if { [info exists env(SKIBOOT_ENABLE_MAMBO_S... |
inited JIT support for plan generated by ORCA | @@ -290,6 +290,8 @@ static split_rollup_data *make_new_rollups_for_hash_grouping_set(PlannerInfo *ro
Path *path,
grouping_sets_data *gd);
+static void compute_jit_flags(PlannedStmt* pstmt);
+
/*****************************************************************************
*
* Query optimizer entry point
@@ -370,6 +372,12... |
Fix float -> int casting | @@ -64,14 +64,15 @@ void maybe_fixup_input_for_display_scale(SDL_Window* win, SDL_Renderer* rend, SD
// this is the fixup.
case SDL_MOUSEMOTION: {
- e->motion.x *= current_display_scale;
- e->motion.y *= current_display_scale;
+ // note: do it this way *just in case* there are non-integer display scales out there.
+ e-... |
libc: Simplify include directory logic | @@ -21,6 +21,14 @@ libc_END := options/internal/gcc-extra/mlibc_crtend.o
libc_gendir := gen/
+libc_include_dirs := options/internal/include \
+ options/ansi/include \
+ options/posix/include \
+ options/lsb/include \
+ options/linux/include
+
+install_header_cmd = install -Dp $< $@
+
#Ansi
libc_includes := alloca.h \
a... |
boot: Fix uninitialized variable warning
Fix uninitialized variable warning that may occur when
compiler optimization is enabled (especially for size). | @@ -1583,7 +1583,7 @@ context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp)
{
size_t slot;
struct boot_status bs;
- int rc;
+ int rc = -1;
int fa_id;
int image_index;
bool has_upgrade;
|
posix env: assert in rwsem unlock
Instead of ignoring `pthread_rwlock_unlock()` return value assert that is must
succeed.
The function returns an error eg. when there is an attempt to unlock the
resource from a different thread than it was originally locked which is illegal
in userspace. | @@ -306,7 +306,7 @@ static inline int env_rwsem_init(env_rwsem *s)
static inline void env_rwsem_up_read(env_rwsem *s)
{
- pthread_rwlock_unlock(&s->lock);
+ ENV_BUG_ON(pthread_rwlock_unlock(&s->lock));
}
static inline void env_rwsem_down_read(env_rwsem *s)
|
{AH} disable bam2fq test until samtools 1.6 available | @@ -5,9 +5,7 @@ Execute in the :file:`tests` directory as it requires the Makefile
and data files located there.
'''
-import pysam
-import pysam.samtools
-import pysam.bcftools
+import warnings
import unittest
import os
import re
@@ -15,6 +13,9 @@ import glob
import sys
import subprocess
import shutil
+import pysam
+im... |
fixed inconsistent sizes of captured_vars and srcs tables for closures in the IR | @@ -131,17 +131,21 @@ function constant_propagation.run(module)
for cmd in ir.iter(func.body) do
if cmd._tag == "ir.Cmd.SetUpvalues" then
local next_f = assert(data_of_func[cmd.f_id])
+ local ir_func = module.functions[cmd.f_id]
local new_u_id = next_f.new_upvalue_id
local new_srcs = {}
+ local new_captured_vars = {}
f... |
link fe: render unseen count in the launch tile | @@ -6,7 +6,20 @@ import _ from 'lodash';
export default class LinkTile extends Component {
render() {
- const { props } = this;
+ const unseenCount = this.props.data.unseen || 0;
+
+ let displayUnseen = unseenCount <= 0
+ ? null
+ : <p
+ className="absolute green2"
+ style={{
+ bottom: 6,
+ fontWeight: 400,
+ fontSize:... |
Critical tuning of time constants. Network now stable. | // time-slot related
#define PORT_TsSlotDuration 328 // counter counts one extra count, see datasheet
// execution speed related
- #define PORT_maxTxDataPrepare 10 // 305us (measured 82us)
- #define PORT_maxRxAckPrepare 10 // 305us (measured 83us)
- #define PORT_maxRxDataPrepare 4 // 122us (measured 22us)
- #define POR... |
links: link detail gets author nickname properly | @@ -29,8 +29,7 @@ export const LinkDetail = (props) => {
);
}
- const { nickname } = getContactDetails(props.contacts[ship]);
- const our = getContactDetails(props.contacts[window.ship]);
+ const { nickname } = getContactDetails(props.contacts[props.node?.post?.author]);
const resourcePath = `${props.ship}/${props.name... |
haskell-build-fixes: improve description of SHARED_ONLY | @@ -245,9 +245,7 @@ endfunction ()
# ; -> " " is not yet implemented)
#
# ONLY_SHARED:
-# Add this plugin only to shared builds of elektra (BUILD_SHARED) and not to full or
-# static builds in case both BUILD_SHARED and one or both of BUILD_FULL and BUILD_STATIC
-# is enabled.
+# Do not include this plugin in FULL or S... |
Corrected udev & modprobe install directories
(Fixes | @@ -255,12 +255,12 @@ install(TARGETS st-util DESTINATION ${CMAKE_INSTALL_BINDIR})
###
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
- ## Install modprobe.d conf files / rules to /usr/local/etc/stlink (default)
- set(STLINK_MODPROBED_DIR "${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME}/modprobe.d" CACHE PATH "modprobe.d director... |
Fix typos in comment
Fix two typos in comment describing a member of 'platform' struct. | @@ -252,10 +252,10 @@ struct platform {
/*
* Returns true when resource is loaded.
* Only has to return true once, for the
- * preivous start_preload_resource call for this resource.
+ * previous start_preload_resource call for this resource.
* If not implemented, will return true and start_preload_resource
* *must* ha... |
support for PEERDIR(path/to/yql_udf) from PY_*. | @@ -2041,7 +2041,7 @@ macro NO_PYTHON_INCLUDES() {
macro PYTHON_ADDINCL() {
_PYTHON_ADDINCL()
SET(MODULE_TAG PY2_NATIVE)
- SET(PEERDIR_TAGS CPP_PROTO PY2_NATIVE __EMPTY__)
+ SET(PEERDIR_TAGS CPP_PROTO PY2_NATIVE YQL_UDF_STATIC __EMPTY__)
}
### @usage _ARCADIA_PYTHON_ADDINCL() #internal
@@ -2049,7 +2049,7 @@ macro PYTHO... |
ip: Dual loop error in midchain chksum
Type: fix | @@ -2259,7 +2259,7 @@ ip4_rewrite_inline_with_gso (vlib_main_t * vm,
adj1->ia_cfg_index);
next[1] = next_index;
if (is_midchain)
- vnet_calc_checksums_inline (vm, b[0], 1 /* is_ip4 */ ,
+ vnet_calc_checksums_inline (vm, b[1], 1 /* is_ip4 */ ,
0 /* is_ip6 */ ,
0 /* with gso */ );
}
|
http_client: use flb_errno() instead of perror() | @@ -456,7 +456,7 @@ struct flb_http_client *flb_http_client(struct flb_upstream_conn *u_conn,
buf = flb_calloc(1, FLB_HTTP_BUF_SIZE);
if (!buf) {
- perror("malloc");
+ flb_errno();
return NULL;
}
@@ -485,7 +485,7 @@ struct flb_http_client *flb_http_client(struct flb_upstream_conn *u_conn,
}
if (ret == -1) {
- perror("s... |
test/usb_pd_int.c: Format with clang-format
BRANCH=none
TEST=none | @@ -19,11 +19,9 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
},
};
-const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
- {
+const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { {
.driver = &mock_usb_mux_driver,
- }
-};
+} };
void board_reset_pd_mcu(void)
{
|
tools/gen-cpydiff: uimports: Replace only imports, not arbitrary substrings.
Previously, code just unconditionally replaced any substring in the source,
e.g. it would replace "bytearray" with "byteuarray". Make it replace
"import array" with "import uarray as array". | @@ -83,7 +83,7 @@ def uimports(code):
""" converts CPython module names into MicroPython equivalents """
for uimport in UIMPORTLIST:
uimport = bytes(uimport, 'utf8')
- code = code.replace(uimport, b'u' + uimport)
+ code = code.replace(b'import ' + uimport, b'import u' + uimport + b' as ' + uimport)
return code
|
ble_mesh: Check if subnet exists before updating beacon_sent
Before updating the "beacon_sent" of a subnet, we need to check
if the subnet still exists, especially for a Provisioner.
Fix a bug which will cause Provisioner failed to send Secure
Network Beacon if no device is provisioned | /* 1 transmission, 20ms interval */
#define PROV_XMIT BLE_MESH_TRANSMIT(0, 20)
+#define SNB_NET_IDX_SET(_val) ((void *)((u32_t)(_val)))
+#define SNB_NET_IDX_GET(_ptr) ((u32_t)(_ptr))
+
static struct k_delayed_work beacon_timer;
static struct bt_mesh_subnet *cache_check(u8_t data[21])
@@ -71,12 +74,31 @@ static void cac... |
Update lib icu source urls. | @@ -318,15 +318,15 @@ if(NOT NODEJS_LIBRARY)
message(STATUS "Configure NodeJS shared library")
# TODO: Select correct ICU version depending on NodeJS version
- # http://download.icu-project.org/files/icu4c/60.2/icu4c-60_2-src.tgz
- # http://download.icu-project.org/files/icu4c/61.1/icu4c-61_1-src.tgz
- # http://downloa... |
linux/trace: register size check for mips | @@ -370,61 +370,48 @@ static size_t arch_getPC(pid_t pid, uint64_t* pc, uint64_t* status_reg HF_ATTR_U
#endif
}
#if defined(__i386__) || defined(__x86_64__)
- /*
- * 32-bit
- */
+ /* 32-bit */
if (pt_iov.iov_len == sizeof(struct user_regs_32)) {
*pc = regs.regs32.eip;
*status_reg = regs.regs32.eflags;
return pt_iov.iov... |
session BUGFIX absolute ts used instead of relative
Fixes | @@ -130,7 +130,8 @@ pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime)
break;
} else if (diff < 5) {
/* sleep until timeout */
- dur = *abstime;
+ dur.tv_sec = 0;
+ dur.tv_nsec = (long)diff * 1000000;
} else {
/* sleep 5 ms */
dur.tv_sec = 0;
|
Address
Pressing tab only does one thing at a time. | @@ -440,7 +440,6 @@ static void check_specials(JanetByteView src) {
check_cmatch(src, "while");
}
-/* TODO - check against special forms and print in alphabetical order */
static void kshowcomp(void) {
JanetTable *env = gbl_complete_env;
if (env == NULL) {
@@ -449,6 +448,10 @@ static void kshowcomp(void) {
return;
}
+ ... |
[doc] Added st-flash --flash CL option
(Closes | +stlink Tools Tutorial
+=====================
+
+## Useful tool options
+### st-flash
+
+#### --flash=n[k][m]
+
+(since v1.4.0)
+
+You can specify `--flash=128k` for example, to override the STM32F103C8T6 to assume 128k of flash instead of the default of 64k.
+This option accepts decimal (128k), octal 0200k, or hex 0x8... |
Get rid of unnecessary opt_ret_type rule
Closes
The opt_ret_type function is a relic from an older version of Pallene where an optional return type
was interpreted as returning Nil. | @@ -49,14 +49,6 @@ function defs.to_false()
return false
end
-function defs.opt_ret_type(_pos, x)
- if not x then
- return { }
- else
- return x
- end
-end
-
function defs.opt(x)
if x == "" then
return false
@@ -273,7 +265,7 @@ local grammar = re.compile([[
(LPAREN STRINGLIT^StringLParImport RPAREN^RParImport /
STRINGL... |
language-server: magic-spoon hover, autocomplete
Uses magic-spoon to properly trace the subject to the cursor position. | (get-pos buf row.com col.com)
=/ rune (rune-snippet (swag [(safe-sub pos 2) 2] txt))
?^ rune rune
- =+ (get-id:auto pos txt)
- ?~ id ~
- =/ matches=(list (option:auto type))
- (search-prefix:auto u.id (get-identifiers:auto (get-subject uri.com)))
- ?~ matches ~
- (turn matches make-completion-item)
+ =/ tab-list
+ %^ t... |
apps: -msg flag enhancement 1/2 | @@ -570,8 +570,8 @@ void msg_cb(int write_p, int version, int content_type, const void *buf,
{
BIO *bio = arg;
const char *str_write_p = write_p ? ">>>" : "<<<";
- const char *str_version = lookup(version, ssl_versions, "???");
- const char *str_content_type = "", *str_details1 = "", *str_details2 = "";
+ char tmpbuf[1... |
readme: new trophies | @@ -84,10 +84,12 @@ Honggfuzz has been used to find a few interesting security problems in major sof
* [Infinite loop in __NGINX Unit__](https://github.com/nginx/unit/commit/477e8177b70acb694759e62d830b8a311a736324)
* A couple of problems in the [__MATLAB MAT File I/O Library__](https://sourceforge.net/projects/matio):... |
fixed small bug in direct proberequest handling | @@ -2425,7 +2425,7 @@ if((myaplist_ptr -myaplist) >= MYAPLIST_MAX)
memset(myaplist_ptr, 0, MYAPLIST_SIZE);
myaplist_ptr->timestamp = timestamp;
-memcpy(myaplist_ptr->addr, macfrx->addr1, 0);
+memcpy(myaplist_ptr->addr, macfrx->addr1, 6);
myaplist_ptr->essid_len = essidtag->len;
memcpy(myaplist_ptr->essid, essidtag->dat... |
Fixed PushStyleVar() and PopStyleVar() binding | @@ -2126,6 +2126,14 @@ namespace sol_ImGui
sol::resolve<void()>(PopStyleColor),
sol::resolve<void(int)>(PopStyleColor)
));
+ ImGui.set_function("PushStyleVar" , sol::overload(
+ sol::resolve<void(int, float)>(PushStyleVar),
+ sol::resolve<void(int, float, float)>(PushStyleVar)
+ ));
+ ImGui.set_function("PopStyleVar" ,... |
genvif: Add support for Alt_Mode_Adapter field
Type_C_Is_Alt_Mode_Adapter now a required field (since rev 3.17).
BRANCH=none
TEST=buildall passes | @@ -726,6 +726,13 @@ static bool is_alt_mode_controller(void)
IS_ENABLED(CONFIG_USB_PD_ALT_MODE_DFP));
}
+static bool is_alt_mode_adapter(void)
+{
+ return get_vif_bool(&vif.Component[component_index]
+ .vif_field[Type_C_Is_Alt_Mode_Adapter],
+ IS_ENABLED(CONFIG_USB_PD_ALT_MODE_DFP));
+}
+
static bool does_respond_to_d... |
Specify the proper iKey for stats event | #ifndef CONFIG_IKEYS_H
#define CONFIG_IKEYS_H
#if defined(__linux__) || defined(__gnu_linux__)
-#define STATS_TOKEN_PROD "99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999"
+#define STATS_TOKEN_PROD "4bb4d6f7cafc4e9292f972dca2dcde42-bd019ee8-e59c-4b0f-a02c-84e72157a3ef-7485"
#else
-#define STAT... |
fix segfault in SoapyLMS7::_readStreamAligned | @@ -269,11 +269,12 @@ int SoapyLMS7::_readStreamAligned(
const size_t elemSize = stream->elemSize;
std::vector<size_t> numWritten(streamID.size(), 0);
- for (size_t i = 0; i < streamID.size(); i += (numWritten[i]==numElems)?1:0)
+ for (size_t i = 0; i < streamID.size(); i += (numWritten[i]>=numElems)?1:0)
{
size_t &N =... |
linux-firmware-rpidistro: Missing link to firmware causes wifi not working on raspberrypi zero w
The link the brcmfmac is looking for was not created by the recipe for the raspberrypi zero w,
so the wifi was not working for this board. Adding link creation in the recipe solved the issue. | @@ -64,6 +64,7 @@ do_install() {
ln -s brcmfmac43455-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt
ln -s brcmfmac43455-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
ln -s brcmfmac43430-sdio.txt ${D}${nonarch_base_libd... |
Fix ORVIBO SF21 smoke sensor vendor and MAC prefix | @@ -224,7 +224,8 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_NONE, "RICI01", tiMacPrefix}, // LifeControl smart plug
{ VENDOR_JENNIC, "VOC_Sensor", jennicMacPrefix}, //LifeControl Enviroment sensor
{ VENDOR_JENNIC, "SN10ZW", jennicMacPrefix }, // ORVIBO motion sensor
- { VENDOR_OSRAM_STACK, "SF2", h... |
protect against double-free in multi-threaded free list | @@ -161,14 +161,21 @@ static void _mi_page_thread_free_collect(mi_page_t* page)
// return if the list is empty
if (head == NULL) return;
- // find the tail
+ // find the tail -- also to get a proper count (without data races)
+ uintptr_t max_count = page->capacity; // cannot collect more than capacity
uintptr_t count =... |
Not required to use ifdef __APPLE__ apply the return statement always. | @@ -200,20 +200,17 @@ static u64 rtrie_extent_max(rtnode r)
u64 k;
if (!r) return 0;
if (!(k = rtrie_extent_max(r->children[1]))) return (r->r.end);
-#ifdef __APPLE__
+
// Return something by default to avoid warning
return 0;
-#endif
}
static u64 rtrie_extent_min(rtnode r)
{
if (!r) return 0;
if (!rtrie_extent_min(r->... |
update test to show use_device_ptr(x) works on device | @@ -16,8 +16,9 @@ program test
x(i)=2
enddo
- !$omp target data is_device_ptr(x)
- write(*, *) "In tagret data=", x(1)
+ write(0, *) "before device_ptr ", x(1)
+ !$omp target data use_device_ptr(x)
+ write(0, *) "in device_ptr", x(1)
!$omp end target data
!$omp target
@@ -26,9 +27,22 @@ program test
endif
!$omp end tar... |
Zero leaks is a good number | @@ -31,7 +31,7 @@ jobs:
echo "running picoquic_ct returns $QUICRESULT "
cat sanity.txt
leaked=`grep "SUMMARY: AddressSanitizer:" sanity.txt | cut -d ' ' -f 3`
- previous_leak=800000
+ previous_leak=0
if [ ! -z "$leaked" ]; then
if [ $leaked -gt $previous_leak ]; then
echo "$leaked > $previous_leak"; exit 1;
|
kTLS: make ktls_start type independed | @@ -40,12 +40,12 @@ static ossl_inline int ktls_enable(int fd)
* provided here.
*/
static ossl_inline int ktls_start(int fd,
- struct tls_enable *tls_en,
+ void *tls_en,
size_t len, int is_tx)
{
if (is_tx)
return setsockopt(fd, IPPROTO_TCP, TCP_TXTLS_ENABLE,
- tls_en, sizeof(*tls_en)) ? 0 : 1;
+ tls_en, len) ? 0 : 1;
e... |
Remove useless argument
Do not pass any data to the event watcher, it is unused. | @@ -56,7 +56,7 @@ static int event_watcher(void* data, SDL_Event* event) {
static void event_loop(void) {
#ifdef CONTINUOUS_RESIZING_WORKAROUND
- SDL_AddEventWatch(event_watcher, screen.window);
+ SDL_AddEventWatch(event_watcher, NULL);
#endif
SDL_Event event;
while (SDL_WaitEvent(&event)) {
|
change inverse | @@ -104,7 +104,8 @@ void Chain::forward(OM_MANAGER::Manipulator *manipulator, Name component_name)
std::vector<float> Chain::inverse(OM_MANAGER::Manipulator *manipulator, Name tool_name, Pose target_pose)
{
- return positionOnlyInverseKinematics(manipulator, tool_name, target_pose);
+ // return positionOnlyInverseKinem... |
herm: send prompt & cursor on-connect | |= =path
^- (quip card:agent:gall _this)
?. ?=([%herm ~] path) !!
- [~ this]
+ :_ this
+ :: scry prompt and cursor position out of dill for initial response
+ ::
+ =/ base=^path
+ /dx/(scot %p our.bowl)//(scot %da now.bowl)/sessions
+ :~ [%give %fact ~ %blit !>(.^(blit:dill (weld base //line)))]
+ [%give %fact ~ %blit ... |
Fix memory leak in mpfit | @@ -977,7 +977,7 @@ int PoserMPFIT(SurviveObject *so, void **user, PoserData *pd) {
}
}
general_optimizer_data_dtor(&d->opt);
-
+ MPFITData_detach_config(ctx, d);
survive_detach_config(ctx, "disable-lighthouse", &d->disable_lighthouse);
survive_detach_config(ctx, "sensor-variance-per-sec", &d->sensor_variance_per_secon... |
Added a check to throw exception if stream fails
also fixed a typo | @@ -200,6 +200,9 @@ namespace ebi
for (int j = 0; j < (int)container.size(); ++j) {
stream.unget();
+ if (stream.fail() || !stream) {
+ throw std::runtime_error("Stream failed");
+ }
}
}
@@ -254,9 +257,9 @@ namespace ebi
void check_readability_of_file(const std::string & file_ext)
{
- std::set<std::string> readable_ext... |
update README.md to reflect the import implementation change of using C++ namespace, and explain the rationale. | -# Orca: a C bot framework
+# Orca: a bot framework
-Orca is a bot framework that is designed with minimum dependencies to
-make bot deployment deadly simple. The primary design goals are:
+## Design
-- easy to reason about the code: we use the most native data structures,
- the simplest algorithms, and intuitive inter... |
pbio/trajectory_ext: wrapper around patch
The patch function for angle based commands is nearly identical, so add a wrapper that allows its code to be shared. | #include <pbio/math.h>
#include <pbio/trajectory.h>
-pbio_error_t pbio_trajectory_make_time_based_patched(pbio_trajectory_t *ref, bool forever, int32_t t0, int32_t t3, int32_t wt, int32_t wmax, int32_t a) {
+static pbio_error_t pbio_trajectory_patch(pbio_trajectory_t *ref, bool time_based, bool forever, int32_t t0, int... |
Converting points on curve to un/compressed numbers. | =/ p ~(. fo p)
=/ n ~(. fo n)
|%
+ ++ point-compressed
+ |= pont
+ (can 3 ~[w^x 1^(add 0x2 (cut 0 [0 1] y))])
+ ::
+ ++ point-uncompressed
+ |= pont
+ (can 3 ~[w^y w^x 1^0x4])
+ ::
++ priv-to-pub :: get pub from priv
|= prv=@
^- pont
|
in_windows_exporter_metrics: Remove a needless comment | @@ -207,7 +207,6 @@ static double wmi_get_value(struct flb_we *ctx, struct wmi_query_spec *spec, IWb
wchar_t *wproperty;
VariantInit(&prop);
- // Get the value of the Name property
wproperty = convert_str(spec->wmi_property);
hr = class_obj->lpVtbl->Get(class_obj, wproperty, 0, &prop, 0, 0);
switch(prop.vt) {
|
Updated bash completion script to reflect v2.0 changes | @@ -67,7 +67,7 @@ _ag() {
--parallel
--passthrough
--passthru
- --path-to-agignore
+ --path-to-ignore
--print-long-lines
--print0
--recurse
@@ -106,7 +106,7 @@ _ag() {
--ignore-dir) # directory completion
_filedir -d
return 0;;
- --path-to-agignore) # file completion
+ --path-to-ignore) # file completion
_filedir
retur... |
Add PhPtInRect | @@ -1430,6 +1430,17 @@ PhOffsetRect(
Rect->bottom += dy;
}
+FORCEINLINE
+BOOLEAN
+PhPtInRect(
+ _In_ PRECT Rect,
+ _In_ POINT Point
+ )
+{
+ return Point.x >= Rect->left && Point.x < Rect->right &&
+ Point.y >= Rect->top && Point.y < Rect->bottom;
+}
+
EXTERN_C_END
#endif
|
Print indent instead of timestamp | @@ -366,9 +366,8 @@ void print_transport_params(const ngtcp2_transport_params *params, int type) {
void print_stream_data(uint32_t stream_id, const uint8_t *data,
size_t datalen) {
- print_timestamp();
- fprintf(outfile, "%sSTREAM%s data stream_id=%08x\n",
- frame_ansi_esc(NGTCP2_DIR_RECV), ansi_escend(), stream_id);
+... |
Use normalize_safe | @@ -494,14 +494,7 @@ static void compute_endpoints_and_ideal_weights_4_comp(
}
lines[i].a = pms[i].avg;
- if (dot_s(dir, dir) == 0.0f)
- {
- lines[i].b = normalize(vfloat4(1.0f));
- }
- else
- {
- lines[i].b = normalize(dir);
- }
+ lines[i].b = normalize_safe(dir, unit4());
}
for (int i = 0; i < texel_count; i++)
|
Add doc in ts loader. | @@ -242,6 +242,7 @@ function ts_loader_trampoline_load_from_memory(name, buffer, opts) {
const handle = {};
// TODO: Implement this with service host instead of transpile, it wont work with discovery
+ // Review this implementation: https://github.com/AlCalzone/virtual-tsc
handle[name] = ts_loader_trampoline_load_inlin... |
[SA] Fixed pillarbox miscalculation for minigames. | @@ -518,7 +518,7 @@ auto Draw = ((void(__thiscall *)(CSprite2d const&, CRect const&, CRGBA const&))(
void __fastcall DrawSpriteHook(CSprite2d const& sprite, int, CRect const& rect, CRGBA const& color) {
Draw(sprite, CRect(fDefaultCoords + rect.m_fLeft * fDefaultWidth / *CDraw::pfScreenAspectRatio, rect.m_fBottom, fDefa... |
analysis workflow, install expat. | @@ -24,15 +24,19 @@ jobs:
# config: "CC=clang --enable-debug --disable-flto"
# make_test: "yes"
# clang_analysis: "yes"
- - name: macos
+ - name: GCC on OS X
os: macos-latest
- config: "--enable-debug --disable-flto --with-ssl=/usr/local/opt/openssl"
+ install_expat: "yes"
+ config: "--enable-debug --disable-flto --wit... |
lock comgr for aomp13 to | @@ -229,6 +229,9 @@ AOMP_COMGR_REPO_BRANCH=${AOMP_COMGR_REPO_BRANCH:-amd-stg-open}
if [ "$AOMP_MAJOR_VERSION" != "12" ] && [ "$AOMP_MAJOR_VERSION" != "13" ] ; then
AOMP_COMGR_REPO_SHA=${AOMP_COMGR_REPO_SHA:-4b689d6}
fi
+if [ "$AOMP_MAJOR_VERSION" == "13" ] ; then
+ AOMP_COMGR_REPO_SHA=${AOMP_COMGR_REPO_SHA:-694f5a8}
+f... |
[numerics] remove compiler warning | @@ -265,7 +265,7 @@ size_t NM_sparse_nnz(const CSparseMatrix* const A)
}
else
{
- fprintf(stderr, "NM_sparse_nnz :: unsupported nz number %ld", A->nz);
+ fprintf(stderr, "NM_sparse_nnz :: unsupported nz number %lld", A->nz);
exit(EXIT_FAILURE);
}
}
|
Update vdp.h
fix def name TILE_SYSTEMLENGTH | */
#define TILE_SYSTEM_LENGTH 16
/**
- * \deprecated Use TILE_SYSTEMLENGTH instead.
+ * \deprecated Use TILE_SYSTEM_LENGTH instead.
*/
#define TILE_SYSTEM_LENGHT TILE_SYSTEM_LENGTH
/**
|
fix unmarked compiler value causing memory issues | @@ -3638,6 +3638,7 @@ void wrenMarkCompiler(WrenVM* vm, Compiler* compiler)
{
wrenGrayValue(vm, compiler->parser->current.value);
wrenGrayValue(vm, compiler->parser->previous.value);
+ wrenGrayValue(vm, compiler->parser->next.value);
// Walk up the parent chain to mark the outer compilers too. The VM only
// tracks the... |
Refactor: node split before overflow checking in do_btree_elem_link(). | @@ -4279,19 +4279,29 @@ static ENGINE_ERROR_CODE do_btree_elem_link(struct default_engine *engine,
}
#endif
- if (info->ccnt > 0) { /* overflow check */
- res = do_btree_overflow_check(info, elem, &ovfl_type);
+ /* If the leaf node is full of elements, split it ahead. */
+ if (path[0].node->used_count >= BTREE_ITEM_COU... |
ames: abandon ill-fated decryption reordering | ::
?. ?=([~ %known *] sndr-state)
(enqueue-alien-todo sndr.packet |=(alien-agenda +<))
- :: channel: immutable data about relationship with .sndr.packet
+ :: decrypt packet contents using symmetric-key.channel
::
:: If we know them, we have a $channel with them, which we've
:: populated with a .symmetric-key derived fr... |
[mod_deflate] fix to return 304 with If-None-Match (fixes
(thx meier22)
Bug in lighttpd 1.4.51 - lighttpd 1.4.64
x-ref:
"mod_deflate not returning 304 Not Modified for If-None-Match request"
"How to get 304 Not Modified - response with mod_deflate" | @@ -1849,7 +1849,7 @@ REQUEST_FUNC(mod_deflate_handle_response_start) {
vb = http_header_response_get(r, HTTP_HEADER_ETAG, CONST_STR_LEN("ETag"));
etaglen = vb ? buffer_clen(vb) : 0;
if (etaglen && light_btst(r->rqst_htags, HTTP_HEADER_IF_NONE_MATCH)) {
- const buffer *if_none_match = http_header_response_get(r, HTTP_H... |
nimble/store: Make it clear store/ram is deprecated
With this patch when store/ram is used then new will warn about it:
2020/04/21 15:51:21.077 [WARNING] Use of deprecated setting BLE_STORE_RAM_DEPRECATED_FLAG in Package store/ram is deprecated and store/config shall be used with BLE_STORE_CONFIG_PERSIST set to 0 | @@ -20,4 +20,13 @@ syscfg.defs:
description: >
Sysinit stage for the RAM BLE store.
value: 500
+ BLE_STORE_RAM_DEPRECATED_FLAG:
+ description: >
+ Package store/ram is deprecated and store/config shall be used with BLE_STORE_CONFIG_PERSIST set to 0
+ value: 0
+ deprecated: 1
+
+
+syscfg.vals:
+ BLE_STORE_RAM_DEPRECATED... |
py/objgenerator: .throw() to stopped generator should raise passed exception.
And not just raise StopIteration, like it did before. | @@ -147,6 +147,10 @@ mp_vm_return_kind_t mp_obj_gen_resume(mp_obj_t self_in, mp_obj_t send_value, mp_
mp_check_self(mp_obj_is_type(self_in, &mp_type_gen_instance));
mp_obj_gen_instance_t *self = MP_OBJ_TO_PTR(self_in);
if (self->code_state.ip == 0) {
+ if (throw_value != MP_OBJ_NULL) {
+ *ret_val = mp_make_raise_obj(th... |
Release: Add separation lines | @@ -38,9 +38,11 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8.
### High-Level API
+
The new high-level API provides an easier way to get started with Elektra.
To get started (including proper error handling) you now only need a few self-explanatory lines of code:
+
```c
ElektraError... |
require slurm-devel; update config opts | @@ -144,7 +144,7 @@ BuildRequires: libtool
#%{?_with_genders:BuildRequires: genders > 1.0}
#BuildRequires: genders > 1.0
%{?_with_pam:BuildRequires: pam-devel}
-#%{?_with_slurm:BuildRequires: slurm-devel%{PROJ_DELIM}}
+%{?_with_slurm:BuildRequires: slurm-devel%{PROJ_DELIM}}
%{?_with_torque:BuildRequires: torque-devel}
... |
DOCS: typo fixes, edits to S3 proxy info | @@ -287,10 +287,10 @@ server_side_encryption = sse-s3
with the <codeph>s3</codeph> protocol configuration parameter <codeph>proxy</codeph> or
an environment variable. If the configuration parameter is set, the environment
variables are ignored. </p>
- <p>To specify proxy with an environment variable, you set the enviro... |
upstream: resume u_conn->coro on timeout if required | @@ -810,6 +810,34 @@ int flb_upstream_conn_timeouts(struct mk_list *list)
u_conn->net_error = ETIMEDOUT;
prepare_destroy_conn(u_conn);
+
+ /*
+ * If the connection has its coro field set it means it's waiting for a
+ * FLB_ENGINE_EV_THREAD event which in some specific cases might never
+ * arrive which would leave the ... |
Reorder two nbtree.h function prototypes.
Make the function prototype order consistent with the definition order
in nbtinsert.c. | @@ -730,8 +730,8 @@ extern void _bt_parallel_advance_array_keys(IndexScanDesc scan);
*/
extern bool _bt_doinsert(Relation rel, IndexTuple itup,
IndexUniqueCheck checkUnique, Relation heapRel);
-extern Buffer _bt_getstackbuf(Relation rel, BTStack stack, BlockNumber child);
extern void _bt_finish_split(Relation rel, Buff... |
Reduce macos ci builds to speed up ci build time | @@ -28,6 +28,10 @@ jobs:
sockaddr: generic-sockaddr
- buildtool: cmake
sockaddr: generic-sockaddr
+ - os: macos-10.15
+ buildtool: gcc
+ - os: macos-10.15
+ openssl: openssl3
steps:
- uses: actions/checkout@v2
|
drum: update app index early when unlinking
The added logic also happens in +se-drop, which will get called by
+se-abet if we did unlink an application. But +se-agon depends on the
index being sane, and may be called between +se-klin and +se-abet. | ::
++ se-klin :: disconnect app
|= gyl=gill:gall
- +>(eel (~(del in eel) gyl))
+ =/ gil=(unit gill:gall) se-agon
+ =. eel (~(del in eel) gyl)
+ ?~ gil +>.$
+ ?: =(gyl u.gil)
+ +>.$(inx 0)
+ (se-alas u.gil)
::
++ se-link :: connect to app
|= gyl=gill:gall
|
Minor portability fixes for new TAP script.
Satisfy perlcritic, mostly. Per buildfarm. | @@ -6,7 +6,7 @@ use TestLib;
use Test::More;
use IPC::Run qw(pump finish timer);
-if ($ENV{with_readline} ne 'yes')
+if (!defined($ENV{with_readline}) || $ENV{with_readline} ne 'yes')
{
plan skip_all => 'readline is not supported by this build';
}
@@ -64,6 +64,7 @@ sub check_completion
ok($okay, $annotation);
# for deb... |
`make checkpatch` and `make checkcodebase` check the same files
Only check src and include (not test), and
exclude src/extern and include/extern. | @@ -185,6 +185,7 @@ checkpatch:
for commit in `git rev-list $$COMMON_COMMIT..HEAD`; do \
echo "[*] Analyzing commit '$$commit'"; \
git format-patch --stdout "$$commit~..$$commit" \
+ -- src include '!src/extern' '!include/extern' \
| ${CHECKPATCH} - || true; \
done
|
FIOBJ Hash should take ownership | @@ -201,6 +201,7 @@ int fiobj_hash_set(FIOBJ hash, FIOBJ key, FIOBJ obj) {
if (FIOBJ_TYPE_IS(key, FIOBJ_T_STRING))
fiobj_str_freeze(key);
fio_hash___insert(&obj2hash(hash)->hash, fiobj_obj2hash(key), key, obj, NULL);
+ fiobj_free(obj); /* take ownership - free the user's reference. */
return 0;
}
@@ -239,6 +240,7 @@ FI... |
SOVERSION bump to version 2.5.2 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 5)
-set(LIBYANG_MICRO_SOVERSION 1)
+set(LIBYANG_MICRO_SOVERSION 2)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
quickdump: fix uninitialized bugs | @@ -134,7 +134,7 @@ static inline bool readStringIntoBufferV2 (FILE * file, struct stringbuffer * bu
// for v3 reading
static inline bool readStringIntoBuffer (FILE * file, struct stringbuffer * buffer, Key * errorKey)
{
- kdb_unsigned_long_long_t size;
+ kdb_unsigned_long_long_t size = 0;
if (!varintRead (file, &size)... |
doc: interval spill method for units greater than months
Units are _truncated_ to months, but only in back branches since the
recent commit.
Reported-by: Bryn Llewellyn
Discussion:
Backpatch-through: 9.6 to 14 | @@ -2710,15 +2710,18 @@ P <optional> <replaceable>years</replaceable>-<replaceable>months</replaceable>-
</para>
<para>
- In the verbose input format, and in some fields of the more compact
- input formats, field values can have fractional parts; for example
- <literal>'1.5 week'</literal> or <literal>'01:02:03.45'</li... |
doc: Update build celadon instruction link | @@ -28,7 +28,7 @@ Build Celadon from source
*************************
#. Follow the instructions in the `Build Celadon from source
- <https://01.org/projectceladon/documentation/getting_started/build-source>`_ guide
+ <https://01.org/projectceladon/documentation/getting-started/build-source>`_ guide
to set up the Celad... |
Add missing value on cmake flag | @@ -64,6 +64,6 @@ jobs:
- uses: actions/checkout@v2
- name: Make dictu and run tests (No HTTP No Linenoise)
run: |
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SYSTEM_VERSION="10.0.18362.0" -DCICD -DDISABLE_HTTP=1 -DDISABLE_LINENOISE=1 -B build
+ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SYSTEM_VERSION="10.0.18362.0" -DCICD=1... |
board/imxrt1050-evk: block peripheral initialization to support serial
Current peripheral initialization is not working well. It blocks
seeing serial logs. Let's block them temporarily. | @@ -258,13 +258,13 @@ void board_initialize(void)
/* Perform board initialization */
(void)imxrt_bringup();
-
+#if 0 // FIXME block belows temporarily to see serial logs
imxrt_iotbus_initialize();
imxrt_pwm_initialize();
imxrt_spi_initialize();
-
+#endif
#ifdef CONFIG_WATCHDOG
imxrt_wdog_initialize(CONFIG_WATCHDOG_DEVP... |
Update CHANGELOG with recent commits. | @@ -13,6 +13,10 @@ This project DOES NOT adhere to [Semantic Versioning](http://semver.org/).
- `TCOD_console_is_active()` was not returning any valid state until now.
- Fixed a missing space between a literal and identifier that may have
caused problems in some C++ programs.
+- Fixed implicit definitions that could po... |
add wmname setting | @@ -16,6 +16,13 @@ if ! command -v instantautostart &>/dev/null; then
bash ~/.instantautostart
fi &
+# needed to fix some misbehaving applications
+if iconf wmname; then
+ wmname "$(iconf wmname)"
+fi
+
+source ~/.instantsession
+
# loop so crashing instantwm doesn't end the x session
while [ -e /tmp/instantosrunning ]... |
[CI] Bugfix mkdir | @@ -125,7 +125,7 @@ def copy_userspace_headers() -> None:
move_operations = build_headers_from_meson_build_file(cross_file, build_file)
subproject_to_move_operations[subproject_name] = move_operations
- cache_file.mkdir(parents=True, exist_ok=True)
+ cache_file.parent.mkdir(parents=True, exist_ok=True)
cache_file.write... |
Removes obsolete test, which test if value of a ptr to ptr is NULL | @@ -348,29 +348,6 @@ TEST(service_registration, getProperties) {
free(name);
}
-TEST(service_registration, getPropertiesIllegalArgument) {
- registry_callback_t callback;
- char * name = my_strdup("sevice_name");
- service_registration_pt registration = serviceRegistration_create(callback, NULL, name, 0, NULL, NULL);
-... |
Allow overriding NETSTACK_CONF_RADIO for simplelink | #if (RF_MODE == RF_MODE_SUB_1_GHZ) && (SUPPORTS_PROP_MODE)
/* Netstack configuration. */
+#ifndef NETSTACK_CONF_RADIO
#define NETSTACK_CONF_RADIO prop_mode_driver
+#endif
/* CSMA configuration. */
#define CSMA_CONF_ACK_WAIT_TIME (RTIMER_SECOND / 300)
#elif (RF_MODE == RF_MODE_2_4_GHZ) && (SUPPORTS_IEEE_MODE)
/* Netstac... |
Formmat the long line | @@ -272,7 +272,8 @@ func (r *ReconcileSPOd) handleUpdatingStatus(
return reconcile.Result{}, nil
}
-func (r *ReconcileSPOd) defaultProfiles(cfg *spodv1alpha1.SecurityProfilesOperatorDaemon) []*seccompprofileapi.SeccompProfile {
+func (r *ReconcileSPOd) defaultProfiles(
+ cfg *spodv1alpha1.SecurityProfilesOperatorDaemon... |
Buf fix exact search advanced search | @@ -186,10 +186,10 @@ AjaxFranceLabs.AdvancedSearchField = AjaxFranceLabs.Class.extend({
},
getTextFieldFilter : function() {
- var all_words_value = this.elm.find('.all_words_line').find('input').val();
- var at_least_one_word_line_value = this.elm.find('.at_least_one_word_line').find('input').val();
- var exact_expre... |
resized myoui, mynic and mymac var from unsigned long long int to int | @@ -115,9 +115,9 @@ static int staytime = TIME_INTERVAL_2S;
static int maxerrorcount;
static int internalpcaperrors;
-static unsigned long long int myoui;
-static unsigned long long int mynic;
-static unsigned long long int mymac;
+static int myoui;
+static int mynic;
+static int mymac;
static timer_t timer1;
static ti... |
Add LdrStandardizeSystemPath | @@ -557,6 +557,14 @@ LdrUnregisterDllNotification(
// end_msdn
+// rev
+NTSYSAPI
+PUNICODE_STRING
+NTAPI
+LdrStandardizeSystemPath(
+ _In_ PUNICODE_STRING SystemPath
+ );
+
// private
typedef struct _PS_MITIGATION_OPTIONS_MAP
{
|
ble_mesh: test: Fix node test function not update role flag | @@ -42,6 +42,8 @@ int bt_mesh_device_auto_enter_network(struct bt_mesh_device_network_info *info)
return -EINVAL;
}
+ bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_NODE);
+
/* The device becomes a node and enters the network */
err = bt_mesh_provision(info->net_key, info->net_idx, info->flags, info->iv_index,
info->un... |
Cellular comment formatting changing only. | @@ -76,8 +76,8 @@ static const int8_t gCellRatToModuleRatU201[] = {
-1, // U_CELL_NET_RAT_LTE
-1, // U_CELL_NET_RAT_EC_GSM
-1, // U_CELL_NET_RAT_CATM1
- -1
- }; // U_CELL_NET_RAT_NB1
+ -1 // U_CELL_NET_RAT_NB1
+ };
/** Table to convert uCellNetRat_t to the value used in
* CONFIGURING the module, SARA-R4/R5 form.
@@ -94... |
doc: fix misspelling in hv-dev-passthrough | @@ -316,7 +316,7 @@ Table Entry (or RTE). The hypervisor then invokes the IOAPIC emulation
handler (refer to :ref:`hld-io-emulation` for details on I/O emulation) which
calls APIs to set up a remapping for the to-be-unmasked interrupt.
-Remapping of (virtual) PIC interrupts are set up in a similar sequence:
+Remapping ... |
fix wrong attack vector | @@ -1356,7 +1356,7 @@ static void send_disassociation(uint8_t *macsta, uint8_t *macap, uint8_t reason)
static mac_t *macftx;
static maclist_t *zeiger;
-if((attackstatus &DISABLE_DEAUTHENTICATION) != DISABLE_DEAUTHENTICATION) return;
+if((attackstatus &DISABLE_DEAUTHENTICATION) == DISABLE_DEAUTHENTICATION) return;
if(fi... |
Enhance GPDEMO output to indicate MIRRORED configuration status. | @@ -29,10 +29,18 @@ STANDBYDIR=$DATADIRS/standby
COORDINATOR_DEMO_PORT=${DEMO_PORT_BASE}
STANDBY_DEMO_PORT=`expr ${DEMO_PORT_BASE} + 1`
DEMO_PORT_BASE=`expr ${DEMO_PORT_BASE} + 2`
+if [ "${WITH_MIRRORS}" == "true" ]; then
for (( i=0; i<`expr 2 \* $NUM_PRIMARY_MIRROR_PAIRS`; i++ )); do
PORT_NUM=`expr $DEMO_PORT_BASE + $... |
Fix World:Collide to use new luax_checkshape
This appears to have been missed in commit | @@ -143,8 +143,8 @@ static int l_lovrWorldOverlaps(lua_State* L) {
static int l_lovrWorldCollide(lua_State* L) {
World* world = luax_checktype(L, 1, World);
- Shape* a = luax_checktype(L, 2, Shape);
- Shape* b = luax_checktype(L, 3, Shape);
+ Shape* a = luax_checkshape(L, 2);
+ Shape* b = luax_checkshape(L, 3);
float f... |
engine: added downstream connection cleanup call | @@ -939,6 +939,7 @@ int flb_engine_start(struct flb_config *config)
flb_net_dns_lookup_context_cleanup(&dns_ctx);
flb_sched_timer_cleanup(config->sched);
flb_upstream_conn_pending_destroy_list(&config->upstreams);
+ flb_downstream_conn_pending_destroy_list(&config->downstreams);
/*
* depend on main thread to clean up e... |
Update README.md
EW2017 Review Meeting - slides + roadmap update | @@ -24,13 +24,16 @@ A [pre-built documentation](http://www.keil.com/pack/doc/CMSIS_Dev/index.html) i
- CMSIS-RTOS API Secure and Non-Secure support, multi-processor support
## Futher Planned Enhancements
+ - CMSIS-Core-A: Cortex-A processor support
+ - CMSIS-RTOS: RTX5 for Cortex-A
+ - CMSIS-DAP: extended trace support... |
OcRngLib: Fix implicit boolean conversion
closes acidanthera/bugtracker#630 | @@ -208,7 +208,7 @@ OcRngLibConstructor (
// CPUID. A value of 1 indicates that processor support RDRAND instruction.
//
AsmCpuid (1, 0, 0, &RegEcx.Uint32, 0);
- mRng.HardwareRngAvailable = RegEcx.Bits.RDRAND;
+ mRng.HardwareRngAvailable = RegEcx.Bits.RDRAND != 0;
//
// Initialize PRNG.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.